16.04.2015, 17:44
Try this:
PHP код:
public OnPlayerRequestSpawn(playerid)
{
if(gPlayerLogged[playerid] == 1)
{
ShowPlayerDialog(playerid,DIALOG_REQUEST_SPAWN_STYLE,DIALOG_STYLE_MSGBOX,""COL_GREEN"How do you want to spawn?",""COL_GREEN"Select","Random","Saved");
return 0;
}
return 1;
}
//under dialog response
if(response)
{
SavedSpawnPlayer[playerid] = 0;
RandomSpawnPlayer[playerid] = 1;
SpawnPlayer(playerid);
}
if(!response)
{
RandomSpawnPlayer[playerid] = 0;
SavedSpawnPlayer[playerid] = 1;
SpawnPlayer(playerid);
}
}