Dialog And Timer - 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: Dialog And Timer (
/showthread.php?tid=146844)
Dialog And Timer -
luckie12 - 09.05.2010
hi i have a question
how can i make if a timer counts from 10-0
that all the players will be teleported except NPC's
and until they get teleported a dialog shows up and player is freezed until they click "Select".
i have a little part of script:
On Top:
OnPlayerSpawn:
Код:
public OnPlayerSpawn(playerid)
{
SetPlayerPos(playerid, -227.027999,1401.229980,27.765625);
SetPlayerInterior(playerid, 18);
SetTimer("LoadMap", 10000, false);
GameTextForPlayer(playerid, "~r~Please Wait ~w~10 ~B~Seconds Until The ~r~Next ~B~Map Loaded...", 5000, 1);
return 1;
}
Please help.
Thx In Advance
-Luckie12
Re: Dialog And Timer -
iJumbo - 09.05.2010
public LoadMap();
for(new i=0; i<MAX_PLAYERS; i++)
{
SetPlayerPos...
}
??
Re: Dialog And Timer -
luckie12 - 09.05.2010
Quote:
Originally Posted by gigi1223
public LoadMap();
for(new i=0; i<MAX_PLAYERS; i++)
{
SetPlayerPos...
}
??
|
get a error of it i think it is because you have:
Код:
public LoadMap();
//MISSED A BRACKET?
for(new i=0; i<MAX_PLAYERS; i++)
{
SetPlayerPos...
}
EDIT: Got it with the dialog But this is the error is still get:
Код:
C:\Documents and Settings\Luc\Bureaublad\Pawno\gamemodes\test.pwn(813) : error 010: invalid function or declaration
LINE 813:
Код:
for(new i=0; i<MAX_PLAYERS; i++)
Re: Dialog And Timer -
iJumbo - 09.05.2010
is a example
Re: Dialog And Timer -
luckie12 - 09.05.2010
Quote:
Originally Posted by luckie12
Quote:
Originally Posted by gigi1223
public LoadMap();
for(new i=0; i<MAX_PLAYERS; i++)
{
SetPlayerPos...
}
??
|
get a error of it i think it is because you have:
Код:
public LoadMap();
//MISSED A BRACKET?
for(new i=0; i<MAX_PLAYERS; i++)
{
SetPlayerPos...
}
EDIT: Got it with the dialog But this is the error is still get:
Код:
C:\Documents and Settings\Luc\Bureaublad\Pawno\gamemodes\test.pwn(813) : error 010: invalid function or declaration
LINE 813:
Код:
for(new i=0; i<MAX_PLAYERS; i++)
|
Edited it