CountDown For One Player
#2

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);
}
Reply


Messages In This Thread
CountDown For One Player - by No Fear - 18.06.2011, 17:33
Re: CountDown For One Player - by park4bmx - 18.06.2011, 17:46
Re: CountDown For One Player - by No Fear - 18.06.2011, 18:05

Forum Jump:


Users browsing this thread: 1 Guest(s)