05.05.2013, 13:44
Код:
if(team[playerid] == TEAM_HUMAN) { ZombieSetup(playerid); team[playerid] = TEAM_ZOMBIE; SetPlayerTeam(playerid,TEAM_ZOMBIE); }
if(team[playerid] == TEAM_HUMAN) { ZombieSetup(playerid); team[playerid] = TEAM_ZOMBIE; SetPlayerTeam(playerid,TEAM_ZOMBIE); }
stock ZombieSetup(playerid) { team[playerid] = TEAM_ZOMBIE; TogglePlayerControllable(playerid,0); ResetPlayerWeapons(playerid); GivePlayerWeapon(playerid,4,1); SetPlayerTeam(playerid,TEAM_ZOMBIE); SetPlayerColor(playerid,COLOR_ZOMBIE); TogglePlayerControllable(playerid,1); new zskin = random(3); switch(zskin) { case 0:SetPlayerSkin(playerid,162); case 1:SetPlayerSkin(playerid,134); case 2:SetPlayerSkin(playerid,137); } return 1; }
if(team[playerid] == TEAM_HUMAN)
{
ZombieSetup(playerid);
}
if(team[playerid] == TEAM_HUMAN)
{
ZombieSetup(playerid);
team[playerid] = TEAM_ZOMBIE;
SetPlayerTeam(playerid,TEAM_ZOMBIE);
}