Dialog And Timer
#1

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:

Код:
forward LoadMap();
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


Reply
#2

public LoadMap();

for(new i=0; i<MAX_PLAYERS; i++)
{
SetPlayerPos...
}

??
Reply
#3

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++)
Reply
#4

is a example
Reply
#5

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)