07.08.2013, 10:39
In the dialog he can set his pSpawn value
PHP код:
if(dialogid == DIALOG_SPAWNPOINT)
{
if(response)
{
switch(listitem)
{
case 0: // LS
{
SendClientMessage(playerid, -1, "You will spawn in Los Santos the next time you spawn.");
PlayerInfo[playerid][pSpawn] = 1;
}
case 1: // LV
{
SendClientMessage(playerid, -1, "You will spawn in Las Venturas the next time you spawn.");
PlayerInfo[playerid][pSpawn] = 2;
}
case 2: // SF
{
SendClientMessage(playerid, -1, "You will spawn in San Fierro the next time you spawn.");
PlayerInfo[playerid][pSpawn] = 3;
}
case 3: // PC
{
SendClientMessage(playerid, -1, "You will spawn in Palomino Creek the next time you spawn.");
PlayerInfo[playerid][pSpawn] = 4;
}
}
}
}