How Would I Do A Setscore Command - DCMD Please?
#2

Код:
new string[128], giveplayerid, pscore, amount;
new pscore = GetPlayerScore(playerid);
if(sscanf(params, "udd", giveplayerid, pscore, amount))
SetPlayerScore(giveplayerid, pscore) = amount;
format(string, sizeof(string), "   %s's Level has been set to %d.", GetPlayerNameEx(giveplayerid), amount);
SetPlayerScore(giveplayerid, pscore);
something like that.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)