/removescore - 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: /removescore (
/showthread.php?tid=388649)
/removescore -
Blackazur - 29.10.2012
Hello Guys i have make a /givescore Command that works, but i dont know how to make a /removescore Command, here the /givescore Command, with Adminvariable/Adminquery
Код:
COMMAND:givescore(playerid,params[])
{
new id;
new level;
if(sscanf(params,"dd",id,level)) return SendClientMessage(playerid,COLOR_YELLOW,"Usage: /givescore [id] [score]");
if(PlayerAdmin[playerid] < 4) return SendClientMessage(playerid,COLOR_RED,"You cannot use this Command!");
SetPlayerScore(id,GetPlayerScore(id)+level);
return 1;
}
Re: /removescore -
maramizo - 29.10.2012
pawn Код:
CMD:removescore(playerid, params[])
{
new gid, level;
if(sscanf(params, "ud", gid, level)) return SendClientMessage(playerid, COLOR_YELOW,"Usage: /removescore [id] [score]");
if(PlayerAdmin[playerid] < 4) return SendClientMessage(playerid,COLOR_RED,"You cannot use this Command!");
SetPlayerScore(gid, GetPlayerScore(gid)-level);
return 1;
}
AW: /removescore -
Blackazur - 29.10.2012
Work, thx.