Spawn Help. - 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)
+--- Thread: Spawn Help. (
/showthread.php?tid=533560)
Spawn Help. -
YanLanger - 25.08.2014
How can i make that player can spawn in other places
EXAMPLE: id 107 spawns at grove and he also can spawn in hmm the beach just an example
How do i make it?
Re: Spawn Help. -
Stinged - 25.08.2014
Check this.
https://sampforum.blast.hk/showthread.php?tid=162488
Re: Spawn Help. -
YanLanger - 25.08.2014
I mean i got LSGW server and lemme give another example
I mean let's say ballas spawn at glen park i want em to spawn also at other places like
Let's say id 111 is ballas skin he spawns at glen park BUT he also can spawn at ahmm... aztecas [just example]
:P
Re: Spawn Help. -
Twizted - 25.08.2014
Make a dialog (DIALOG_STYLE_LIST) and add several options. When the player spawns, show him the dialog.
pawn Код:
#define DIALOG_SPAWN 1
OnPlayerSpawn:
ShowPlayerDialog(playerid, DIALOG_SPAWN, DIALOG_STYLE_LIST, "Select a spawn", "Glen Park\nGrove Street\nAztecas Headquarters", "Select", "");
OnDialogResponse:
if(dialogid == DIALOG_SPAWN)
{
if(response) // If they clicked 'Select' or double-clicked an option
{
// Spawn them
switch(listitem)
{
case 0: //SetPlayerPos @ Glen Park
case 1: //SetPlayerPos @ Grove Street
case 2: //SetPlayerPos @ Aztecas Headquarters
}
}
return 1; // We handled a dialog, so return 1.
}