Tazer system. [0.3z RC2] -
Blunt - 17.01.2014
Tazer system.
SA-MP 0.3z RC2
So today I logged into the forums, suprised by the candidate update of 0.3z RC2 and decided to make a short, nice little system. I quickly thought of the tazer system and developed it.
Here are some of the features:
• Smartly developed, with a general design to it.
• Injury system after being tazerd, included with a /getup system.
• Synced shots, no lag shooting with the all-new 0.3z updates.
Commands:
• /getup - Can only use this once the tazer timer has been expired, default is 60 seconds. You can edit this in the script
• /tazer - Gives you the tazer, tazes a player once you shoot them.
Re: Tazer system. [0.3z R2] -
Scrillex - 17.01.2014
Good job mate
![Wink](images/smilies/wink.png)
good to see you back
Re: Tazer system. [0.3z R2] -
d0 - 17.01.2014
RC2. R2 is something completly different
Re: Tazer system. [0.3z R2] -
Diesel5 - 17.01.2014
Nice. Gonna check it out.
Re: Tazer system. [0.3z R2] -
LMagnifico - 17.01.2014
nice fs
Re: Tazer system. [0.3z R2] -
Blunt - 17.01.2014
Quote:
Originally Posted by d0
RC2. R2 is something completly different
|
Updated, typing mistake.
Re: Tazer system. [0.3z R2] -
Fenky - 13.02.2014
When I tried to compile it, it said
tazersystem.pwn(89) : error 025: function heading differs from prototype
E:\Ricky\预备\BRP\filterscripts\tazersystem.pwn(104) : error 025: function heading differs from prototype
Re: Tazer system. [0.3z R2] -
$Marco$ - 13.02.2014
I would suggest adding a reload for the tazer to avoid it beeing abused (like 3-5 seconds cooldown), regardless this is an awesome FilterScript, good job.
Re: Tazer system. [0.3z R2] -
Deathlane - 16.02.2014
Quote:
Originally Posted by Fenky
When I tried to compile it, it said
tazersystem.pwn(89) : error 025: function heading differs from prototype
E:\Ricky\预备\BRP\filterscripts\tazersystem.pwn(104) : error 025: function heading differs from prototype
|
Are you using 0.3z's includes? If not, you can remove 'bodypart' in OnPlayerGiveDamage callback.
Re: Tazer system. [0.3z R2] -
wups - 16.02.2014
You need to include this:
pawn Код:
public OnPlayerUpdate(playerid)
{
new iCurWeap = GetPlayerWeapon(playerid); // Return the player's current weapon
if(iCurWeap != GetPVarInt(playerid, "iCurrentWeapon")) // If he changed weapons since the last update
{
// Lets call a callback named OnPlayerChangeWeapon
OnPlayerChangeWeapon(playerid, GetPVarInt(playerid, "iCurrentWeapon"), iCurWeap);
SetPVarInt(playerid, "iCurrentWeapon", iCurWeap);//Update the weapon variable
}
return 1; // Send this update to other players.
}
Because there is no such callback by default.