Spawn Help.
#1

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?
Reply
#2

Check this.
https://sampforum.blast.hk/showthread.php?tid=162488
Reply
#3

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

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.
    }
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)