12.11.2009, 19:39
pawn Code:
if(strcmp(cmd, "/ack", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GREY, "USAGE: /ack [playerid]");
return 1;
}
giveplayerid = ReturnUser(tmp);
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] < 3)
{
PlayerInfo[playerid][pCK] = 1;
}
else
{
SendClientMessage(playerid,COLOR_GREY,"You'r not admin level 3 or higher! ");
}
}
}
return 1;
}