20.06.2018, 02:47
is this anti-weaps correct on my server I have the getplayerweaponEX function
or do not they connect anti weaps minigun and rpg that works?
public OnPlayerUpdate(playerid)
{
IlegalWeapons(playerid);
return 1;
}
stock IlegalWeapons(playerid)
{
if(GetPlayerWeapon(playerid) == 16 || GetPlayerWeapon(playerid) == 17 || GetPlayerWeapon(playerid) == 35 ||
GetPlayerWeapon(playerid) == 36 || GetPlayerWeapon(playerid) == 37 || GetPlayerWeapon(playerid) == 38 ||
GetPlayerWeapon(playerid) == 39 || GetPlayerWeapon(playerid) == 40 || GetPlayerWeapon(playerid) == 1
{
Kick(playerid);
return 1;
}
return 1;
}
or do not they connect anti weaps minigun and rpg that works?
public OnPlayerUpdate(playerid)
{
IlegalWeapons(playerid);
return 1;
}
stock IlegalWeapons(playerid)
{
if(GetPlayerWeapon(playerid) == 16 || GetPlayerWeapon(playerid) == 17 || GetPlayerWeapon(playerid) == 35 ||
GetPlayerWeapon(playerid) == 36 || GetPlayerWeapon(playerid) == 37 || GetPlayerWeapon(playerid) == 38 ||
GetPlayerWeapon(playerid) == 39 || GetPlayerWeapon(playerid) == 40 || GetPlayerWeapon(playerid) == 1
{
Kick(playerid);
return 1;
}
return 1;
}