Help me with Weapon Dialog REP++
#6

Okay, you mean show dialog only 1 time at first spawn? If yes, then you have to use something like this:

PHP код:
// Top of script

new WeaponDialogs[MAX_PLAYERS];

public 
OnPlayerConnect(playerid)
{
     
WeaponDialogs[playerid] = 1;
     return 
1;
}

public 
OnPlayerSpawn(playerid)
{
     if(
WeaponDialogs[playerid] == 1)
     {
    
ShowPlayerDialog(playeridDIALOG_WEAPONSDIALOG_STYLE_LIST"What type of weapon do you want?""Melee Weapons \nPistols\nShotguns\nSub-Machine Guns\nRifles\nJetpack\nCamera\nMinigun""Search""Cancel"); 
     
WeaponDialogs[playerid] = 0;
     }
     return 
1;

I think this is what you're asking for and it shall work fine.
Reply


Messages In This Thread
Help me with Weapon Dialog REP++ - by Configuration - 08.04.2013, 10:16
Re: Help me with Weapon Dialog REP++ - by ]Rafaellos[ - 08.04.2013, 11:11
Re: Help me with Weapon Dialog REP++ - by Configuration - 08.04.2013, 11:34
Re: Help me with Weapon Dialog REP++ - by Private200 - 08.04.2013, 11:38
Re: Help me with Weapon Dialog REP++ - by Configuration - 08.04.2013, 11:45
Re: Help me with Weapon Dialog REP++ - by Private200 - 08.04.2013, 11:55
Re: Help me with Weapon Dialog REP++ - by Configuration - 08.04.2013, 12:02
Re: Help me with Weapon Dialog REP++ - by Private200 - 08.04.2013, 12:07
Re: Help me with Weapon Dialog REP++ - by Configuration - 08.04.2013, 12:24

Forum Jump:


Users browsing this thread: 2 Guest(s)