24.03.2015, 13:50
save a variable to their account, on spawn, switch the statement, for example:
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.
pawn Код:
//Example:
public OnPlayerSpawn(playerid)
{
switch(pdata[playerid][SpawnLocation])
{
case 1: //Los Santos
{
}
case 2: //Las Venturas
{
}
case 3: //San Fierro
{
}
}
return 1;
}