Need Help
#2

Try this
Код:
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;
}
Reply


Messages In This Thread
Need Help - by Rayansh - 07.08.2012, 16:57
Re: Need Help - by [EuG]ZeRoGoD - 07.08.2012, 19:51

Forum Jump:


Users browsing this thread: 1 Guest(s)