17.12.2010, 19:57
Hey,
Ive made a /warn command but when i type /warn [id] nothing comes up =/
Ive made a /warn command but when i type /warn [id] nothing comes up =/
Код:
dcmd_warn(playerid, params[]) { new warnID; if(PlayerInfo[playerid][AdminLevel] < 1) if(sscanf(params, "u", warnID))return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /warn [playerid]"); else { new String[22]; SetPVarInt(warnID, "Warned", GetPVarInt(playerid, "Warned")+1); format(String, sizeof(String), "ADMIN WARNING! [%i/5]", GetPVarInt(playerid, "Warned")); SendClientMessage(warnID, COLOR_RED, String); if(GetPVarInt(playerid, "Warned")>=5)Kick(warnID); } return 1; }