Error on spawning.
#1

Okay, so I'm creating a server from scratch and this is what happens;


And here is the code:
pawn Код:
case DIALOG_SPAWN:
        {
            if(!response)
            {
                SendClientMessage(playerid, COLOR_RED, "ERROR: You need to spawn before you can do anything else!");
                return 0;
            }
            else
            {
                if(listitem == 0)
                {
                    SetPlayerPos(playerid, 413.5646,2537.1045,19.1484);
                    SpawnPlayer(playerid);
                    return 1;
                }
                if(listitem == 1)
                {
                    SetPlayerPos(playerid, 218.1994,1856.7305,13.0597);
                    SpawnPlayer(playerid);
                }
            }
        }
Reply
#2

PHP код:
case DIALOG_SPAWN:
        {
            if(!
response)
            {
                
SendClientMessage(playeridCOLOR_RED"ERROR: You need to spawn before you can do anything else!");
                return 
0;
            }
            else
            {
                if(
listitem == 0)
                {
                    
SpawnPlayer(playerid);
                    
SetPlayerPos(playerid413.5646,2537.1045,19.1484);
                    return 
1;
                }
                if(
listitem == 1)
                {
                    
SpawnPlayer(playerid);
                    
SetPlayerPos(playerid218.1994,1856.7305,13.0597);
                    
                }
            }
        } 
Reply
#3

U add player class and let the player spawn there
pawn Код:
and use onplayerspawn
//under on playerspawn
if(w/e)
{
SetPlayerPos(u know it);
}
Reply
#4

Don't even spawn.. I stay in spectate mode.
Reply
#5

And I just keep spawning with the AddPlayerClass.
Reply
#6

Anyone?
Reply
#7

Help?!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)