26.01.2012, 16:57
Sorry but, that code is terrible.
pawn Код:
CMD:adsetscore(playerid, params[])
{
new id, score, Nam[MAX_PLAYER_NAME], mystring[128];
if(!AdminLevel[playerid]) return SendClientMessage(playerid, 0xFF0000FF, "You are not an admin.");
if (sscanf( params, "ud", id, score) ) return SendClientMessage( playerid, -1, "USAGE: /adsetscore [ID] [score]" );
GetPlayerName(id, Nam, sizeof(Nam));
format(mystring, sizeof mystring, "* You have set %s's score to %i.", Nam, score);
SendClientMessage( playerid, COLOR_RED, mystring);
SetPlayerScore(id, score);
return 1;
}