SA-MP Forums Archive
Disable Dialog For Zombies - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Disable Dialog For Zombies (/showthread.php?tid=363920)



Disable Dialog For Zombies - Deaglez - 29.07.2012

Can anyone teach me how to disable the dialog for zombies only?



I hate that!

here is the pawno code:
PHP код:
public OnPlayerSpawn(playerid)
{
    
ShowPlayerDialog(playerid1DIALOG_STYLE_LIST"Choose your weapons to spawn""AK47\nM4A1\nDeagle\nUZI""Use""Cancel");
    
SetPlayerToTeamColour(playerid);
    if(
gTeam[playerid] == TEAM_ZOMBIE)
    
SCM(playeridCOLOR_YELLOW"You are spawned as Zombie, use /bite to loose the human's hp!");
    return 
1;




Re: Disable Dialog For Zombies - SnG.Scot_MisCuDI - 29.07.2012

pawn Код:
public OnPlayerSpawn(playerid)
{
    if(!gTeam[playerid] == TEAM_ZOMBIE) //or i think its like if(gTeam[playerid] != TEAM_ZOMBIE)
    {
        ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Choose your weapons to spawn", "AK47\nM4A1\nDeagle\nUZI", "Use", "Cancel");
    }
    if(gTeam[playerid] == TEAM_ZOMBIE)
    {
        SCM(playerid, COLOR_YELLOW, "You are spawned as Zombie, use /bite to loose the human's hp!");
    }
    SetPlayerToTeamColour(playerid);
    return 1;
}
if that doesnt work change
pawn Код:
if(gTeam[playerid] == OTHER_TEAM)
    {
        ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Choose your weapons to spawn", "AK47\nM4A1\nDeagle\nUZI", "Use", "Cancel");
    }