Function not working
#1

SetPlayerDisableWeapons or SetDisableWeapons does not work
Reply
#2

It's called SetDisabledWeapons and it's disabled in 0.3:
Quote:
Warning: This function is removed in SA-MP 0.3. Alternatively you can return 0 in OnPlayerUpdate if they use a bad weapon, and change their weapon.
Reply
#3

Look this http://forum.sa-mp.com/index.php?topic=119943.0
Reply
#4

pawn Код:
#define DISABLED_WEAPONS 35, 36, 37, 38

public OnPlayerUpdate(playerid)
{
 #if defined DISABLED_WEAPONS
 new weapon = GetPlayerWeapon(playerid);
   
 switch(weapon)
 {
  case DISABLED_WEAPONS:
  {
   GivePlayerWeapon(playerid, weapon, -GetPlayerAmmo(playerid));
   return 0;
  }
 }
 #endif
   
 return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)