Question - 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: Question (
/showthread.php?tid=247806)
Question -
Ectazy - 10.04.2011
how to do it after 5 seconds to write a message to hello. Thanks for help..
Re: Question -
Carrot - 10.04.2011
pawn Код:
forward timer;
public OnPlayerConnect(playerid)
{
SetTimer("timer",5000,false);
return 1;
}
public timer()
{
SendClientMessageToAll(0xFFFFFFFF,"hello");
return 1;
}
Re: Question -
Ectazy - 10.04.2011
Thanks
Re: Question -
Hashski - 10.04.2011
Not
Come on dont be a noob ...
Re: Question -
MrDeath537 - 10.04.2011
pawn Код:
public OnPlayerConnect(playerid)
{
SetTimerEx("timer",5000,false,"i",playerid);
return 1;
}
forward timer(playerid);
public timer(playerid)
{
SendClientMessage(playerid, 0xFFFFFFFF,"hello");
return 1;
}
^ will only send the message to the player