Quote:
Originally Posted by Balon
Here you are.
pawn Code:
#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; }
|
Quote:
Originally Posted by TimmehBoy
Quote:
Originally Posted by Calgon
As this is a discussion forum, I wanted to ask, why was it removed? It really was a useful function and saved me a lot of code, now I have to create another way of preventing weapon hacks (already know what I'm going to do, but..).. So, why?
|
Use OnPlayerUpdate and create your own SetDisabledWeapons ?
|
Guys, he never asked for a new solution, he was just asking if the devs/testers or whatever could say why they removed it. AND he said:
Quote:
Originally Posted by Calgon
now I have to create another way of preventing weapon hacks (already know what I'm going to do, but..)
|