CountDown For One Player - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: CountDown For One Player (
/showthread.php?tid=262605)
CountDown For One Player -
No Fear - 18.06.2011
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
Re: CountDown For One Player -
park4bmx - 18.06.2011
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);
}
Re: CountDown For One Player -
No Fear - 18.06.2011
No i need a GameText Or SomeThing Else not just an Timmer and no count down