15.11.2010, 00:22
(
Последний раз редактировалось Kitten; 24.11.2013 в 05:28.
)
Solved
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;
}
public NoZombieWeapons(playerid)
{
if(gTeam[playerid] == TEAM_ZOMBIE)
{
if(GetPlayerWeapon(playerid) != 0 && GetPlayerWeapon(playerid) != KNIFE) ResetPlayerWeapons(playerid); GivePlayerWeapon(playerid,KNIFE,600);
}
return 1;
}