02.10.2012, 16:36
This should work:
Код:
if(strcmp(cmdtext, "/setscore", true) == 0) { new string[128], otherplayer[MAX_PLAYER_NAME]; new sendername[MAX_PLAYER_NAME]; new tmp[256]; new tmp2[256]; new givenplayer = strval(tmp); new score = strval(tmp2); if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_YELLOW, "USAGE: /setscore [playerid] [Score]"); SetPlayerScore(givenplayer,score); GetPlayerName(playerid,sendername, sizeof(sendername)); format(string,sizeof string,"Admin %s Has set your score to %d ",sendername,score); SendClientMessage(otherplayer, COLOR_GREEN, string); return 1; }