16.04.2015, 17:41
Hello
I want that it wont spawn player if he don't click the dialog [RANDOM],[SPAWNED]
I want that it wont spawn player if he don't click the dialog [RANDOM],[SPAWNED]
Код:
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 1; } //under dialog response if(response) { SavedSpawnPlayer[playerid] = 0; RandomSpawnPlayer[playerid] = 1; SpawnPlayer(playerid); } if(!response) { RandomSpawnPlayer[playerid] = 0; SavedSpawnPlayer[playerid] = 1; SpawnPlayer(playerid); } } //under onplayer spawn if(RandomSpawnPlayer[playerid] == 1) { bla bla bla } if(SavedSpawnPlayer[playerid] == 1) { bla bla bla } }