SA-MP Forums Archive
[FilterScript] Nailed bat - Become an authenthic psychopath - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] Nailed bat - Become an authenthic psychopath (/showthread.php?tid=339807)



Nailed bat - Become an authenthic psychopath - admantis - 05.05.2012

Description:
Hey guys, this script is maybe a crap, but it's quite fun.
Whenever you hold a baseball bat, it will be replaced with a nailed, gross, rusty and big bat with nails attached on the tip.
You can choose whether to use the nailed bat automatically using the command /nailedbat.
Like you can see here:
1st Picture - Click
2nd Picture - Click

Compatibility:
If your script uses ZCMD, or strcmp to handle commands, this script is compatible with both. You need to change this line
pawn Код:
#define USE_ZCMD        true
To 'true' or 'false' if you want to use ZCMD or not.
This is required for the /nailedbat command.

Also, if you use attached objects, change this line
pawn Код:
#define NAILEDBAT_SLOT  (06)
To change the attached object index to an unused one, or the nailed bat might override your other attached objects. By default, it's 6.

Download:
Pastebin.com - #1 paste tool since 2002!


Re: Nailed bat - Become an authenthic psychopath - K9Alex - 05.05.2012

Good script man, you deserve a +rep!


Re: Nailed bat - Become an authenthic psychopath - $HANI_DON - 05.05.2012

10/9 cool man


Respuesta: Nailed bat - Become an authenthic psychopath - [Vector] - 05.05.2012

Lol It's funny. A suggestion: What about adding damage to the bat? I mean if you got hit by a player that got the nailed bat you get killed.


Re: Nailed bat - Become an authenthic psychopath - Biesmen - 05.05.2012

Instead of using OnPlayerUpdate, I suggest you to add this to the GivePlayerWeapon function and modify the script a bit. OnPlayerUpdate may only cause more lag in the server.

I re-wrote your plugin into the way that would be good in my opinion, I am not sure if you'll like it, but I think the best way to make the spikes appear, would be the following:
http://pastebin.com/XBZqtBMq

How it works: Simple, you get the bat and then it will transform into that spiky bat, 500ms after you get the bat. If you want to disable it, you'll have to type the normal command you scripted.

It's a nice bat

As additional you could increase the amount of damage the bat does
Edit: Vector was first about this damage suggestion