| Welcome, Guest |
You have to register before you can post on our site.
|
| Forum Statistics |
» Members: 7,800
» Latest member: tohbobo51
» Forum threads: 2,364
» Forum posts: 12,245
Full Statistics
|
| Online Users |
There are currently 370 online users. » 1 Member(s) | 367 Guest(s) Bing, Google, ihatetn931
|
| Latest Threads |
AntyCheat System [SA-MP/O...
Forum: Filterscripts
Last Post: Pevenaider
Yesterday, 04:58 PM
» Replies: 9
» Views: 17,555
|
After School Roleplay - G...
Forum: Advertisements
Last Post: cosminupgaming
Yesterday, 12:58 PM
» Replies: 7
» Views: 493
|
RolePlay Gamemode [WIP]
Forum: Gamemodes
Last Post: su109551
2025-12-24, 10:48 PM
» Replies: 5
» Views: 95
|
Discord Server Unable to ...
Forum: Chat
Last Post: cosminupgaming
2025-12-24, 05:58 PM
» Replies: 0
» Views: 33
|
My website is now up
Forum: Tech
Last Post: Centnodes
2025-12-23, 07:19 PM
» Replies: 1
» Views: 93
|
Broken voice
Forum: Support
Last Post: yunnnjunior
2025-12-23, 11:41 AM
» Replies: 0
» Views: 31
|
United Gaming Life Rolepl...
Forum: Advertisements
Last Post: Cruncher
2025-12-22, 09:14 PM
» Replies: 0
» Views: 45
|
LCSHosting.eu - Free SA-M...
Forum: Tech
Last Post: LCSLaces
2025-12-22, 07:54 PM
» Replies: 1
» Views: 117
|
Discord problem.
Forum: Support
Last Post: drwnrbbt
2025-12-22, 04:52 AM
» Replies: 2
» Views: 78
|
🎮 Free SA-MP Server Hosti...
Forum: Chat
Last Post: Centnodes
2025-12-21, 09:38 PM
» Replies: 9
» Views: 515
|
|
|
| Custom map in the form of chunks |
|
Posted by: dignity - 2020-11-29, 05:41 PM - Forum: Videos and Screenshots
- Replies (1)
|
 |
Hello all,
As some of you know previously on SA-MP I worked on many niche servers such as Wild West Roleplay, Medieval Roleplay, and more.?With the coming of Open MP the original team has been reinvigorated with energy to continue the medieval project as we all have high hopes for this mod.
We've decided to make a custom map consisting entirely of chunks, similar to how the original base game was made.?
This means all decoration is part of the model itself which severely reduces object count. We have a system ingame that allows us to enable/disable chunks willingly as well as the ability for players to enable/disable shrubs based on their machine's performance.
Here are some renders and test images from the very first chunk we made, and below is also a video of the entire rendering system in action. (64x64 chunks, on a brazilian server for reasons)
https://i.imgur.com/lzfxI4v.png
https://cdn.discordapp.com/attachments/6...nknown.png
[Video: https://www.youtube.com/watch?v=dw0zycPk...e=youtu.be]
Thanks and let me know what you think!
PS: the bugs in the video are already patched :)
|
|
|
|
| Automatic textdraw line break |
|
Posted by: Frajola - 2020-11-29, 08:15 AM - Forum: Pawn Scripting
- Replies (2)
|
 |
Hello guys, how are you?
I want to create a textdraw notification system. but i would like to know how do i break the line if the message exceeds 15 characters? I would like to know how it is possible to divide sentences with more than 15 characters into 2 lines or more. does anyone know any techniques to help me?
I know that if I use "\ n" it will break the line, but I would like to know how I make it automatic, as some messages will be created in game.
|
|
|
|
| [Include] MapTD - Show GTA SA Map on a Textdraw |
|
Posted by: Toxic - 2020-11-28, 10:29 PM - Forum: Libraries
- Replies (2)
|
 |
About the Include:
This include will show?GTA SA default map on a TextDraw, and you can show it to any player using ShowMapForPlayer or hide
by using HideMapForPlayer.
This include would be too simple without this, it?also contains creating/destroying global/player icons on the created?textdraw (using only the physical x,y position for?icon you want).
![[Image: 9B698RB_d.webp?maxwidth=640&shape=thumb&fidelity=medium]](https://i.imgur.com/9B698RB_d.webp?maxwidth=640&shape=thumb&fidelity=medium)
How to use:
This include uses YSI (more specifically Y_hooks), made?by Y_Less. The required YSI folder is included in the download package, if you already have it, you don't need to add it again. Add both "MapTD.inc" and the YSI folder (if you don't already have it) to your includes folder.
In order for this include to work you need to add "#include <TDMap>" on the top of your gamemode/filterscript somewhere
below "#include <a_samp>".
Additional define values:
Maximal number of the player icons by the default is 100, and maximal number of the global icons by the default is 100,
you can always modify that by defining "MAX_ICONS" and "MAX_PLAYER_ICONS" in your GameMode/FilterScript.
If you are using this include in a FilterScript you need to add "#define FS_MapTD 1" inside your FilterScript.
Features:
Code: -ShowMapForPlayer (playerid)
| Used to show the map on a TextDraw for a specified player.
| Return values:
| returns 1 : if the function was successful
| returns 0 : if playerid was not found
| Parameters:
| playerid : map will be shown for player with this ID
-HideMapForPlayer (playerid)
| Used to hide the map on a TextDraw for a specified player.
| Return values:
| returns 1 : if the function was successful
| returns 0 : if playerid was not found
| Parameters:
| playerid : map will be hidden for player with this ID
-CreateIcon (IconID,type,Float:x,Float:y)
| Used to create a global icon on the map.
| Return values:
| returns IconID : if the icon was created successfully
| returns -1 : if the icon type or icon ID is wrong
| Parameters:
| IconID : the unique ID of the icon also returned by this function
| type : SAMP map icon type (these types are not available: 0,1,3)
| Float:x : the X position of the icon
| Float:y : the Y position of the icon
-CreatePlayerIcon (playerid,IconID,type,Float:x,Float:y)
| Used to create a player icon on the map for specified player.
| Return values:
| returns IconID : if the icon was created successfully
| returns -1 : if playerid was not found, the icon type or icon ID is wrong
| Parameters:
| playerid : ID of the player who will see the icon
| IconID : the unique ID of the player icon also returned by this function
| type : SAMP map icon type (these types are not available: 0,1,3)
| Float:x : the X position of the icon
| Float:y : the Y position of the icon
-DestroyIcon (IconID)? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?
?| Used to destroy global icon on the map.
| Return values:
| returns 1 : if the icon was destroyed successfully
| returns 0 : if the icon ID was wrong
| Parameters:
| IconID : the unique ID of the icon returned by CreateIcon
-DestroyPlayerIcon (playerid,IconID)? ? ? ? ? ? ? ? ? ? ? ?
| Used to destroy player icon on the map.
| Return values:
| returns 1 : if the icon was destroyed successfully
| returns 0 : if the icon ID was wrong
| Parameters:
| playerid : ID of the player whose icon will be destroyed
| IconID : the unique ID of the icon returned by CreateIcon
-IsMapShownForPlayer (playerid)? ? ? ? ? ? ? ? ? ? ? ?
| Used to find out is player looking at the map currently.
| Return values:
| returns 1 : if player is looking at the map
| returns 0 : if player is not looking at the map or playerid is wrong
| Parameters:
| playerid : ID of the player
Note: this include was made a long time ago originally by me, and posted on the old SAMP forum, after this some people reposted it and defined themselves as the authors, so?I decided to repost it on here. If you got any questions, suggestions for improvement / optimisation or new features feel free to reply.
Download:
http://www.mediafire.com/file/tec9mmbslh...ᢜ.rar/file
|
|
|
|
| timers sometime work sometime doesnt work |
|
Posted by: Zow - 2020-11-27, 04:32 PM - Forum: Pawn Scripting
- No Replies
|
 |
[Video: https://www.dailymotion.com/video/x7xqv85]
First time I try to show but its gone for no reason
00:01 > 00:06 Ignore after that
Code: forward OnProgressUpdate(playerid, progress, objective);
forward OnProgressFinish(playerid, objective);
StartProgress(playerid, duration, startvalue = 0, objective)
{
if(ProgressState[playerid] == 1)
return 0;
stop ProgressTimer[playerid];
ProgressTimer[playerid] = repeat ProgressUpdate(playerid, objective);
ProgressLimit[playerid] = duration;
ProgressProgress[playerid] = startvalue;
ProgressState[playerid] = 1;
ProgressObject[playerid] = objective;
SetPlayerProgressBarMaxValue(playerid, PlayerProgressJob[playerid], ProgressLimit[playerid]);
SetPlayerProgressBarValue(playerid, PlayerProgressJob[playerid], ProgressProgress[playerid]);
ShowPlayerProgressBar(playerid, PlayerProgressJob[playerid]);
PlayerTextDrawShow(playerid, PlayerJobCountTD[playerid]);
return 1;
}
StopProgress(playerid)
{
if(ProgressState[playerid] == 0)
return 0;
stop ProgressTimer[playerid];
ProgressLimit[playerid] = 0;
ProgressProgress[playerid] = 0;
ProgressState[playerid] = 0;
ProgressObject[playerid] = INVALID_OBJECT_ID;
HidePlayerProgressBar(playerid, PlayerProgressJob[playerid]);
PlayerTextDrawHide(playerid, PlayerJobCountTD[playerid]);
return 1;
}
timer ProgressUpdate[100](playerid, objective)
{
if(ProgressProgress[playerid] >= ProgressLimit[playerid])
{
StopProgress(playerid);
CallLocalFunction("OnProgressFinish", "dd", playerid, objective);
return;
}
SetPlayerProgressBarMaxValue(playerid, PlayerProgressJob[playerid], ProgressLimit[playerid]);
SetPlayerProgressBarValue(playerid, PlayerProgressJob[playerid], ProgressProgress[playerid]);
ShowPlayerProgressBar(playerid, PlayerProgressJob[playerid]);
CallLocalFunction("OnProgressUpdate", "ddd", playerid, ProgressProgress[playerid], objective);
ProgressProgress[playerid];
return;
}
This all function is from SSS and I mix to my script
And here how I use
Code: StartProgress(playerid, 100, 0, objectid);
Already fix it
Put stop ProgressTimer[playerid]; under OnPlayerDisconnect
|
|
|
|
|