07.08.2012, 16:57
I wan't warn command plz anyone give me ??/
CMD:warn(playerid, params[]) { if(AdminLevel[playerid] == 2) return SendClientMessage(playerid,COLOR_BLUE,"You have to be level 1 to use that command!"); new warnID; if(sscanf(params, "u", warnID))return SendClientMessage(playerid, COLOR_WHITE, "[INFO]: /warn [playerid]"); else { new wString[22]; SetPVarInt(warnID, "PlayerWarnings", GetPVarInt(playerid, "PlayerWarnings")+1); format(wString, sizeof(wString), "You have been warned! [%i/5]", GetPVarInt(playerid, "PlayerWarnings")); SendClientMessage(warnID, COLOR_RED, wString); if(GetPVarInt(playerid, "PlayerWarnings")>=5)Kick(warnID); } return 1; }