[Help] Timers
#1

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
Reply
#2

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);
Reply
#3

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


Forum Jump:


Users browsing this thread: 1 Guest(s)