Select House Spawn (Dailog)
#6

pawn Код:
new text[500], zone[100];
GetPlayerName(playerid, PlayerName, 24);
for(new i=1; i<MAX_HOUSES; i++)
    if(House[i][HOwner][0] != '\0')
        if(!strcmp(House[i][HOwner], PlayerName))
        {
            GetZone(House[i][HX], House[i][HY], House[i][HZ], zone);
            format(text, sizeof(text),"%s{FFFFFF}House ID : %d | House Location : %s\n",text, i, zone);
        }

if(text[0] != '\0')
{
    text[ strlen(text) - 2] = '\0';
    ShowPlayerDialog(playerid, 10, DIALOG_STYLE_LIST, "Select Spawn", text, "Select", "Cancel");
}
else
{
    SetSpawnInfo(playerid, 0, 1, 362.9318, 173.6587, 1008.3828, 90.0000, 0, 0, 0, 0, 0, 0);
    TogglePlayerSpectating(playerid, false);
    SpawnPlayer(playerid);
    SetPlayerInterior(playerid, 3);
    SetPlayerVirtualWorld(playerid, 500);
}
Reply


Messages In This Thread
Select House Spawn (Dailog) - by yoran765 - 10.05.2014, 17:36
Re: Select House Spawn (Dailog) - by Jefff - 10.05.2014, 19:29
Re: Select House Spawn (Dailog) - by yoran765 - 10.05.2014, 20:02
Re: Select House Spawn (Dailog) - by Jefff - 10.05.2014, 20:18
Re: Select House Spawn (Dailog) - by yoran765 - 10.05.2014, 20:24
Re: Select House Spawn (Dailog) - by Jefff - 11.05.2014, 00:26

Forum Jump:


Users browsing this thread: 1 Guest(s)