need help with one command - 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: need help with one command (
/showthread.php?tid=74011)
need help with one command -
WardenCS - 19.04.2009
there is an countdown command,i want to make it like only those players see who are close to him who make /count
so command are here : can someone chanbge it to like that?
Quote:
public countdown()
{
if(cd_sec == 0)
{
GameTextForAll("~r~Go!",1000,3);
KillTimer(cd_timer);
}
else
{
new string[8];
format(string,sizeof(string),"~g~%d",cd_sec);
GameTextForAll(string,1000,3);
}
cd_sec = cd_sec-1;
return 1;
}
|
and there are
Quote:
if(strcmp(cmd,"/count",true)==0)
{
cd_sec = 5;
cd_timer = SetTimer("countdown", 999, 1);
return true;
}
|
Re: need help with one command -
WardenCS - 19.04.2009
sry for double post but please...