11.05.2014, 00:26
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);
}