SA-MP Forums Archive
Score system - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Score system (/showthread.php?tid=616417)



Score system - ManGoe - 04.09.2016

I use the following system to give a specific user score what i need to add is a /setscore command with sscanf, need help.
http://pastebin.com/rssKV8j0


Re: Score system - Shinja - 04.09.2016

PHP код:
CMD:setscore(playeridparams[])
{
    
//Checks
    
new idscore;
    if(
sscanf(params"ui"idscore)) return SendClientMessage(playerid, -1"Wrong usage..");
    
SetPlayerScoreEx(idscore);
    
//Send messages if you want..
    
return 1;




Re: Score system - ManGoe - 05.09.2016

Hope that works, gonna test.