Spawn requesting ?
#2

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);
}

Reply


Messages In This Thread
Spawn requesting ? - by kalanerik99 - 16.04.2015, 17:41
Re: Spawn requesting ? - by ATGOggy - 16.04.2015, 17:44
Re: Spawn requesting ? - by kalanerik99 - 16.04.2015, 17:48
Re: Spawn requesting ? - by kalanerik99 - 16.04.2015, 17:50
Re: Spawn requesting ? - by ATGOggy - 16.04.2015, 17:52
Re: Spawn requesting ? - by kalanerik99 - 16.04.2015, 17:56
Re: Spawn requesting ? - by ATGOggy - 16.04.2015, 17:59
Re: Spawn requesting ? - by kalanerik99 - 16.04.2015, 18:05

Forum Jump:


Users browsing this thread: 2 Guest(s)