29.07.2012, 03:16
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;
}
pawn Код:
if(gTeam[playerid] == OTHER_TEAM)
{
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Choose your weapons to spawn", "AK47\nM4A1\nDeagle\nUZI", "Use", "Cancel");
}