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

Username
  

Password
  





Search Forums



(Advanced Search)

Forum Statistics
» Members: 7,759
» Latest member: LCSLaces
» Forum threads: 2,368
» Forum posts: 12,320

Full Statistics

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

Latest Threads
LCSHosting.eu - Free SA-M...
Forum: Tech
Last Post: LCSLaces
Yesterday, 04:57 PM
» Replies: 0
» Views: 20
Las Venturas Gang Wars - ...
Forum: Advertisements
Last Post: lvgwgta
Yesterday, 03:29 PM
» Replies: 0
» Views: 15
Infamous Roleplay
Forum: Advertisements
Last Post: JakeFalcone
2025-12-11, 11:34 PM
» Replies: 0
» Views: 33
The server didn't respond...
Forum: Support
Last Post: HELLHOUND
2025-12-11, 01:17 PM
» Replies: 1
» Views: 172
Grand Gang War (GGW)
Forum: Advertisements
Last Post: piroballu
2025-12-09, 01:16 PM
» Replies: 1
» Views: 230
PROJECT: LOS ANGELES — TH...
Forum: Advertisements
Last Post: DevonH
2025-12-06, 01:43 AM
» Replies: 3
» Views: 718
Zona América del Sur DM+ ...
Forum: Advertisements
Last Post: kevinberriosflores
2025-12-05, 10:59 PM
» Replies: 0
» Views: 65
Real-time pathfinder, opt...
Forum: Pawn Scripting
Last Post: ejtamovic
2025-12-05, 02:06 PM
» Replies: 0
» Views: 111
The size of the output am...
Forum: Questions and Suggestions
Last Post: scandalfive
2025-12-01, 07:07 PM
» Replies: 0
» Views: 114
Garsiono's, Ricardo's, Tr...
Forum: Advertisements
Last Post: drwnrbbt
2025-12-01, 10:15 AM
» Replies: 0
» Views: 102

 
  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;

}


  How do I get a percentage?
Posted by: Ryder Sixz - 2020-11-25, 06:46 PM - Forum: Pawn Scripting - Replies (3)

Hello, I would like to know how to get the percentage of a figure, so far I have tried this:



Code:
new percentage1 = 10;

new percentage2 = 8000;



CMD:cent(playerid, params[])

{

? ? new string[256];

? ? format(string, sizeof(string), "The result was %d", percentage1%percentage2);

? ? SendClientMessage(playerid,-1,string);

? ? return 1;

}



but it does not work (it gives me the figure of 10). Does anyone know how to do it correctly? thanks!


  OLD SA-MP FORUM ARCHIVE
Posted by: Potassium - 2020-11-25, 03:17 AM - Forum: General Discussions - Replies (9)

Hello,

Although we have the Burgershot forum as the new replacement for the SA-MP forum, we still want to have access to all of the old threads - particularly scripting help etc.

So an awesome member of the community has backed up the old SA-MP forum and uploaded it for everyone to access!

You can't log in, but all of the old threads are there :)

http://sampforumarchive.com


  Faster spectator mode & OnPlayerRequestClass
Posted by: Godfather - 2020-11-24, 11:01 PM - Forum: Questions and Suggestions - Replies (1)

Is there any option to make spectator mode "faster" when toggling. I can see skin mesh for a second every time and I would like to make it cleaner and smoother.



I'm trying to do some cinematic scene when player connects but OnPlayerRequestClass is called even though I put it there in spectator mode.



My suggestion would be to able in script?to disable this callback at all if we don't want to use it, also F4 button ingame is abusable by players on RP servers.