27.12.2016, 19:23
I suggest putting your damage script inside of OnPlayerTake and disable all default damages and then choose when to give damage
Example:
Example:
Код:
if(somethinghere) { new Float:x, Float:y, Float:z; switch(weaponid) { case 0: damage = 3; //Your weapon's damages //Heres a code for shotgun damage and no damage for beanbag. case 25: { if(!IsBBActive{issuerid}) { if(!Beanbagged{playerid}) { //Beanbag code here } else { //Else code here, aka a warning indicating you've shot him already } } else { // Your shotgun's weapon damage here } }