Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums



(Advanced Search)

Forum Statistics
» Members: 7,638
» Latest member: BrightNestK
» Forum threads: 2,341
» Forum posts: 12,280

Full Statistics

Online Users
There are currently 324 online users.
» 0 Member(s) | 321 Guest(s)
Google, Baidu, Bing

Latest Threads
undefined symbol
Forum: Portuguese/Portugu?s
Last Post: leobradoks
2025-10-25, 08:58 PM
» Replies: 1
» Views: 1,586
SA:MP Custom Character Li...
Forum: General Discussions
Last Post: Dilshad
2025-10-22, 04:15 PM
» Replies: 0
» Views: 55
Anyone got old rp scripts...
Forum: General Discussions
Last Post: Bilal
2025-10-21, 01:02 PM
» Replies: 5
» Views: 5,257
Anyone has the SARP Gamem...
Forum: Gamemodes
Last Post: Bilal
2025-10-21, 12:59 PM
» Replies: 0
» Views: 95
SARP Gamemode
Forum: Releases
Last Post: Bilal
2025-10-21, 12:58 PM
» Replies: 0
» Views: 65
Need To Hire Pawno Coder....
Forum: General Discussions
Last Post: Dilshad
2025-10-21, 06:20 AM
» Replies: 1
» Views: 800
Original Godfather
Forum: Pawn Scripting
Last Post: NmE
2025-10-20, 11:48 AM
» Replies: 3
» Views: 273
What would you start?
Forum: Life
Last Post: vuongtrungnu13
2025-10-20, 01:55 AM
» Replies: 4
» Views: 9,854
People who have one of th...
Forum: Tech
Last Post: vuongtrungnu13
2025-10-20, 01:39 AM
» Replies: 2
» Views: 5,190
After School Community
Forum: Advertisements
Last Post: cosminupgaming
2025-10-19, 12:42 PM
» Replies: 0
» Views: 127

 
  Help Please Fs a Gm
Posted by: nbx2000 - 2020-11-29, 12:13 AM - Forum: Pawn Scripting - Replies (5)

hello people I have converted a filecript in Gm and when compiling everything fine but it does not load or create a database and it does not show in the log that is loaded look at the link

https://pastebin.com/v11PhRVD


  [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]



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


Video [SAMP]PoliceTV
Posted by: Olivia Benson - 2020-11-28, 11:46 AM - Forum: Videos and Screenshots - Replies (3)

Howdy there!



I would like to introduce you to my channel, in which I will be active again in the near future!



My videos are about the exciting everyday work of a police officer.



Best regards!





https://www.youtube.com/watch?v=-qDzqiaMqaY

https://www.youtube.com/watch?v=zJutciOoH2c&t=677s

https://www.youtube.com/watch?v=m0XYRV-h5m8

[url=https://www.youtube.com/watch?v=m0XYRV-h5m8][/url]


  Promotional Videos
Posted by: Chronized - 2020-11-28, 01:19 AM - Forum: Videos and Screenshots - Replies (1)

Sup ya'll, I'm new here?and I would like to share some of my Video works that i've made from different SAMP Community.

[Video: https://www.youtube.com/watch?v=9M2S-oecf44&t=2s]

[Video: https://www.youtube.com/watch?v=eyycfb0nnHk]

You can check my Youtube Channel for more?videos!


https://www.youtube.com/channel/UCZwcLRO...h4V6cBMEA/


  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


  Devi's Discord Library (dv_discord)
Posted by: Dev86 - 2020-11-27, 06:58 AM - Forum: Libraries - Replies (3)

Devi's Discord Library

(dv_discord)


to be improved


  Remove Connect Message
Posted by: Jonies - 2020-11-27, 06:01 AM - Forum: General Discussions - Replies (4)

Can We Remove The Connecting To bla bla bla or just replace it with Connection To (Name server)


  [Warning] dropping a split packet from client
Posted by: Akirah - 2020-11-27, 03:05 AM - Forum: Pawn Scripting - Replies (1)

Hello, this warning is related to sscanf, correct?

Is there any way to resolve this? I tried some things but it didn't work.


PHP Code:
[connection00.000.000.000:0000 requests connection cookie.
[
23:49:59] [connectionincoming connection00.000.000.000:0000 id0
[23:50:00] [warningdropping a split packet from client
[23:50:01] [warningdropping a split packet from client
[23:50:02] [warningdropping a split packet from client
[23:50:03] [warningdropping a split packet from client 


(Modified IP, not the real one)

This warning appeared on the host, I had no opportunity to test on the PC.

Help me, pls.


  MTA Maps Parser
Posted by: sneakyevil - 2020-11-26, 08:22 PM - Forum: Filterscripts - Replies (3)

Hey,



I was kinda bored and also lazy to use converter each time and renaming CreateObject to CreateDynamicObject when I edited something in MTA SA Map Editor.

So I made simple FS that will loop through each file inside "scriptfiles/mtamaps" and parse objects & vehicles and call functions runtime.



There is one problem and I have?no idea if SA-MP has option to somehow use R, G, B colors for Vehicles but my solution was to loop through pre-defined colors and find closet one.



If there is any problem with the FS then let me know.???



Download & Source:?https://github.com/sneakyevilSK/MTA-Maps-Parser


  Random letters and numbers
Posted by: Frajola - 2020-11-25, 10:18 PM - Forum: Pawn Scripting - Replies (4)

Hi guys. could you help me generate numbers and letters in the same string?



Does not work. how could i do?



Code:
stock CreateVehiclePlate()

{

? ? new string[10];

? ? format(string, sizeof(string), "%s %d %s %s",? random('A'-'Z'), random('0'-'9'), random('A'-'Z'), random('A'-'Z'));

? ? return string;

}