05.06.2015, 06:37
Hello i have one command wich is /isadmin. Her function is to show what level of admin is the player. But the problem it's always show me 7 level..
Код:
if(strcmp(cmd,"/isadmin",true)==0) { new adminstring[256]; if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pAdmin] >= 1) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "ИЗПОЛЗВАЙ: /isadmin [ номер на играча ]"); return 1; } giveplayerid = ReturnUser(tmp); new admin = PlayerInfo[playerid][pAdmin]; format(adminstring, sizeof(adminstring), "Играчът е %d ниво администратор!",admin); SendClientMessage(playerid, COLOR_RED,adminstring); } } return 1; }