Spawn requesting ?
#1

Hello

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
}
}
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: 1 Guest(s)