SetDisableWeapon
#18

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;
}
It worked in the same way before, when it was a native function. The only difference is that this desync player who uses disabled weapons when the native one desynced only the weapon.
Reply


Messages In This Thread
SetDisableWeapon - by SoeH - 18.10.2009, 18:56
Re: SetDisableWeapon - by erorcun - 18.10.2009, 18:59
Re: SetDisableWeapon - by SoeH - 18.10.2009, 19:02
Re: SetDisableWeapon - by erorcun - 18.10.2009, 19:06
Re: SetDisableWeapon - by KillFrenzy - 18.10.2009, 19:42
Re: SetDisableWeapon - by SoeH - 18.10.2009, 19:47
Re: SetDisableWeapon - by SoeH - 18.10.2009, 19:54
Re: SetDisableWeapon - by Gappy - 18.10.2009, 19:54
Re: SetDisableWeapon - by SoeH - 18.10.2009, 19:58
Re: SetDisableWeapon - by Redgie - 18.10.2009, 21:50
Re: SetDisableWeapon - by Mikep. - 18.10.2009, 22:09
Re: SetDisableWeapon - by SoeH - 18.10.2009, 22:18
Re: SetDisableWeapon - by BeckzyBoi - 18.10.2009, 22:19
Re: SetDisableWeapon - by SoeH - 18.10.2009, 22:31
Re: SetDisableWeapon - by BeckzyBoi - 18.10.2009, 22:33
Re: SetDisableWeapon - by SoeH - 18.10.2009, 22:50
Re: SetDisableWeapon - by Jason_Borne420 - 19.10.2009, 02:24
Re: SetDisableWeapon - by Balon - 19.10.2009, 04:24
Re: SetDisableWeapon - by Sergei - 19.10.2009, 08:47

Forum Jump:


Users browsing this thread: 1 Guest(s)