30.07.2012, 12:11
Still won't work
Код:
if (strcmp(cmd, "/check", true) == 0) { if(IsPlayerConnected(playerid)) { if (PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pHelper] >= 1) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD1, "USAGE: /check [playerid/PartOfName]"); return 1; } giveplayerid = strval(tmp); giveplayerid = ReturnUser(tmp); if(IsPlayerConnected(giveplayerid)) { if(giveplayerid != INVALID_PLAYER_ID) { ShowStats(playerid,giveplayerid); } } else { SendClientMessage(playerid, COLOR_GRAD1, " No Such Player"); } } else { SendClientMessage(playerid, COLOR_GRAD1, " You are not an admin"); } } return 1; }