/changenick and /setscoreall - 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: /changenick and /setscoreall (
/showthread.php?tid=402176)
/changenick and /setscoreall -
Jonathan19 - 25.12.2012
Hey guys, first of all, Merry Christmas.
Now I'm working on this server and I'd appreciate if I got some assistance with both the /changenick and /setscoreall cmd. I'm using dcmd and If anybody would just like to help me out by typing both codes down for me or give a brief tutorial on setting up the codes, that'd be just fine. Thanks.
Re: /changenick and /setscoreall -
SKAzini - 25.12.2012
I'm not into dcmd but:
pawn Код:
for(new i; i < MAX_PLAYERS; i++)
{
if(!IsPlayerConnected(i)) continue;
SetPlayerScore(i, 5000);
}
This code would set all the currently online players' score to 5000. You would have to include sscanf to make a /setscoreall [amount] command.
Use
SetPlayerName to set a players' nick.