pawn Код:
public NoZombieWeapons(playerid)
{
if(gTeam[playerid] == TEAM_ZOMBIE)
{
if(GetPlayerWeapon(playerid) == 38) ResetPlayerWeapons(playerid); GivePlayerWeapon(playerid,KNIFE,600);
if(GetPlayerWeapon(playerid) == DEAGLE) ResetPlayerWeapons(playerid); GivePlayerWeapon(playerid,KNIFE,600);
if(GetPlayerWeapon(playerid) == TEC9) ResetPlayerWeapons(playerid); GivePlayerWeapon(playerid,KNIFE,600);
if(GetPlayerWeapon(playerid) == M4) ResetPlayerWeapons(playerid); GivePlayerWeapon(playerid,KNIFE,600);
if(GetPlayerWeapon(playerid) == SMG) ResetPlayerWeapons(playerid); GivePlayerWeapon(playerid,KNIFE,600);
if(GetPlayerWeapon(playerid) == CHAINSAW) ResetPlayerWeapons(playerid); GivePlayerWeapon(playerid,KNIFE,600);
if(GetPlayerWeapon(playerid) == SMG2) ResetPlayerWeapons(playerid); GivePlayerWeapon(playerid,KNIFE,600);
if(GetPlayerWeapon(playerid) == 22) ResetPlayerWeapons(playerid); GivePlayerWeapon(playerid,KNIFE,600);
if(GetPlayerWeapon(playerid) == 23) ResetPlayerWeapons(playerid); GivePlayerWeapon(playerid,KNIFE,600);
if(GetPlayerWeapon(playerid) == 25) ResetPlayerWeapons(playerid); GivePlayerWeapon(playerid,KNIFE,600);
if(GetPlayerWeapon(playerid) == 26) ResetPlayerWeapons(playerid); GivePlayerWeapon(playerid,KNIFE,600);
if(GetPlayerWeapon(playerid) == 27) ResetPlayerWeapons(playerid); GivePlayerWeapon(playerid,KNIFE,600);
if(GetPlayerWeapon(playerid) == 35) ResetPlayerWeapons(playerid); GivePlayerWeapon(playerid,KNIFE,600);
if(GetPlayerWeapon(playerid) == 36) ResetPlayerWeapons(playerid); GivePlayerWeapon(playerid,KNIFE,600);
}
return 1;
}
pawn Код:
public NoZombieWeapons(playerid)
{
if(gTeam[playerid] == TEAM_ZOMBIE)
{
if(GetPlayerWeapon(playerid) != 0 && GetPlayerWeapon(playerid) != KNIFE) ResetPlayerWeapons(playerid); GivePlayerWeapon(playerid,KNIFE,600);
}
return 1;
}