CountDown For One Player
#1

Hello, i need a script, a when player is using a command umh
/hello
Ir then timmer starts for him
[ playerid ]
from 100count to 0 and Kick Him, Only him, ar CountDown only for him
Please i need this fast :/
thanks, and sorry for bad english
i don't care if ths a simple msg, o texdraw or something else
Reply
#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
#3

No i need a GameText Or SomeThing Else not just an Timmer and no count down
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)