[FilterScript] Tazer system. [0.3z R2]
#1

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.
Reply
#2

Good job mate good to see you back
Reply
#3

RC2. R2 is something completly different
Reply
#4

Nice. Gonna check it out.
Reply
#5

nice fs
Reply
#6

Quote:
Originally Posted by d0
Посмотреть сообщение
RC2. R2 is something completly different
Updated, typing mistake.
Reply
#7

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
Reply
#8

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.
Reply
#9

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.
Reply
#10

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)