18.06.2011, 17:46
this is what i think u need
pawn Код:
//at the top
new Used[MAX_PLAYERS];
if(strcmp(cmd, "/help", true)==0) //When you use the command the timer starts
{//+ i made it so players don't SPAM the command it can only be used once
if(Used[playerid]==0)
{
SetTimerEx("KickAfterTime", 100000, 1, "i", playerid);
Used[playerid]=1;
}
else
{
SendClientMessage(playerid,0xFF0000FF,"The Command Has Being Used Already");
}
}
forward KickAfterTime(playerid);
public KickAfterTime(playerid)//And then after 100 seconds the player gets kicked
{
SendClientMessage(playerid,0xFF0000FF,"You Have Been Kicked");
Used[playerid]=0;
Kick(playerid);
}