08.05.2014, 14:34
OnGBugAbuse CallBack
Current Version: v1.0Introduction
So you all must have seen often players press G and thne press H while in passenger state in a vehicle which
has no driver so if we try to shot that player he doesnt get killed and kills many player so prevent this; this
call back has been made by me. This is called when a player fires 3 shots in slow firing guns like Shot guns and
after four shots in fast guns like ak-47.
The purpose of calling it after 3 shots in slow firing guns and 4 shot in fast firing guns is that sometimes
driver gets killed while passenger is still in and was firing so if we call this calllback at first shot it
can be a false call too so it is called after some shots.
Using In A FS
This is an example code that can be used in FS--
pawn Code:
#include <OnGBugAbuse>
public OnGBugAbuse(playerid,vehicleID)
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid,-1,"{ff0000}No G-Bug[Passenger Seat] Abuses.");
return 1;
}
Script can be foudn here -- pastebin.com/zKBGfhDS
Credits
SAMP Team -- For SAMP and PAWNO Compiler
****** -- For froeach.inc
BroZeus -- [Thats me!!] For scripting