Dcmd_Warn
#1

Hey,
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;
}
Reply


Messages In This Thread
Dcmd_Warn - by Tessar - 17.12.2010, 19:57
Re: Dcmd_Warn - by blackwave - 17.12.2010, 20:00
Re: Dcmd_Warn - by WillyP - 17.12.2010, 20:01
Re: Dcmd_Warn - by case 1337: - 17.12.2010, 20:02
Re: Dcmd_Warn - by MestreKiller - 17.12.2010, 20:02
Re: Dcmd_Warn - by Tessar - 17.12.2010, 20:12

Forum Jump:


Users browsing this thread: 1 Guest(s)