[HELP]Spawning player with himself
#2

save a variable to their account, on spawn, switch the statement, for example:

pawn Код:
//Example:
public OnPlayerSpawn(playerid)
{
    switch(pdata[playerid][SpawnLocation])
    {
        case 1: //Los Santos
        {
       
        }
        case 2: //Las Venturas
        {
       
        }
        case 3: //San Fierro
        {
       
        }
    }
    return 1;
}
When the player selects their spawn location, save it to their data, everytime they spawn, the code will select that variable in the server's memory and spawn the player accordingly.
Reply


Messages In This Thread
[HELP]Spawning player with himself - by fuckingcruse - 24.03.2015, 13:40
Re: [HELP]Spawning player with himself - by Banana_Ghost - 24.03.2015, 13:50
Re: [HELP]Spawning player with himself - by fuckingcruse - 24.03.2015, 13:50
Re: [HELP]Spawning player with himself - by Banana_Ghost - 24.03.2015, 13:52
Re: [HELP]Spawning player with himself - by fuckingcruse - 24.03.2015, 13:55
Re: [HELP]Spawning player with himself - by fuckingcruse - 25.03.2015, 09:38
Re: [HELP]Spawning player with himself - by Sew_Sumi - 25.03.2015, 11:15
Re: [HELP]Spawning player with himself - by fuckingcruse - 25.03.2015, 11:39
Re: [HELP]Spawning player with himself - by Sew_Sumi - 25.03.2015, 14:10
Re: [HELP]Spawning player with himself - by maximthepain - 25.03.2015, 14:16

Forum Jump:


Users browsing this thread: 1 Guest(s)