[Help] Timers - 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: [Help] Timers (
/showthread.php?tid=249968)
[Help] Timers -
kakalakamakapaka - 21.04.2011
Hi guys....i need some example with timers.....Can u make for me (because i dont know - i am bad with timers
) something that do like this....
public OnPlayerRequestClass(playerid, classid)
{
for(new i=0; i<49; i++) { SendClientMessageToAll(0xFFFFFFFF, " "); }
TextDrawShowForPlayer(playerid,DGVP); //this is some text
TextDrawShowForPlayer(playerid,blackscreen); //this is one textdraw - blackscreen for /blindfold
FadeColorForPlayer(playerid,0,0,0,255,0,0,0,0,15,0 );
and after 15 second coming this:
"StartKamere(playerid);"
I made forwards, but i dont know make timers...pls do it for me...i must to learn from examle
Sorry for my bad english, and PLS help me guys
Re: [Help] Timers -
Sascha - 21.04.2011
pawn Код:
forward Kamere(playerid);
public Kamera(playerid)
{
StartKamere(playerid);
return 1;
}
at on player request class / or fromt eh point where you want the 15 secs to start counting:
pawn Код:
SetTimerEx("Kamere", 15000, false, "i", playerid);
Re: [Help] Timers -
kakalakamakapaka - 21.04.2011
Quote:
Originally Posted by Sascha
pawn Код:
forward Kamere(playerid); public Kamera(playerid) { StartKamere(playerid); return 1; }
at on player request class / or fromt eh point where you want the 15 secs to start counting:
pawn Код:
SetTimerEx("Kamere", 15000, false, "i", playerid);
|
thx, but where to put: "for(new i=0; i<49; i++) { SendClientMessageToAll(0xFFFFFFFF, " "); }
TextDrawShowForPlayer(playerid,DGVP); //this is some text
TextDrawShowForPlayer(playerid,blackscreen); //this is one textdraw - blackscreen for /blindfold
FadeColorForPlayer(playerid,0,0,0,255,0,0,0,0,15,0 );"