Auto spawn on public OnPlayerSpawn(playerid)
#4

pawn Код:
forward SpawnFix(playerid);
OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
 switch(dialogid)
 {
  case 0:
  {
   if(!response) return ShowPlayerDialog(playerid, 0, DIALOG_STYLE_PASSWORD, "Create An Account", "Please Create An Account On Our Server Before You Continue", "Register", "Leave");
   SetTimerEx("SpawnFix", 1, 0, "i", playerid);
  }
 }
}
public SpawnFix(playerid)
{
 SpawnPlayer(playerid);
}
You have to delay the spawn a little, doesn't work otherwise.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)