Disable Dialog For Zombies
#1

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;

Reply
#2

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


Forum Jump:


Users browsing this thread: 1 Guest(s)