18.01.2012, 12:24
You have used it many times. Try this
pawn Код:
dcmd_warn(playerid,params[]) {
if(PlayerInfo[playerid][pAdmin] >= 1) {
new Index2, tmp1 = strtok(params, Index2), tmp2 = strtok(params, Index2);
if(!strlen(tmp) || !strlen(tmp2)) return SendClientMessage(playerid, COLOR_RED, "USAGE: /warn [playerid] [reason]");
new warned = strval(tmp), str[128];
new sendername[MAX_PLAYER_NAME];
new giveplayer[MAX_PLAYER_NAME];
// if(PlayerInfo[warned][Level] == ServerInfo[MaxAdminLevel] && PlayerInfo[playerid][Level] != ServerInfo[MaxAdminLevel]) return SendClientMessage(playerid,red,"ERROR: You cannot use this command on this admin");