28.10.2012, 15:08
OR
Код:
if(strcmp(cmd, "/showmarks", true) == 0) { if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SCM(playerid, COLOR_GRAD1, "USAGE: /showmarks [playerid/PartOfName]"); return 1; } giveplayerid = ReturnUser(tmp); if(IsPlayerConnected(giveplayerid)) { if(giveplayerid != INVALID_PLAYER_ID) { new amount; amount = strval(tmp); PlayerInfo[giveplayerid][pMarks] = amount; GetPlayerName(playerid, numewarning, sizeof(numewarning)); format(string, sizeof(string), "This Player Has %d Roleplay mark(s).",amount); ABroadCast(COLOR_LIGHTRED,string, 5); }//not valid id }//not connected } return 1; }