18.02.2009, 01:39
Here is a small include that I created with some of my functions in it,
Version 1.01
Changelog:
v1.01:
Changed the functions around and added new ones,
IsInCopCar(playerid) is now IsInPoliceVehicle(playerid)
(Note):
There are more then likely other functions that do the same thing, I just couldn't find them so I made my own.
I plan to add more as I create them.
Hope you like them!
Credits:
Salmon
Install:
Save to pawn/include
Add
to the top of your script
(assuming you saved it as sfunc.inc)
Function List:
(Returns 1 if the statement is true)
IsInPoliceVehicle(playerid) //Checks if the player is in a police vehicle, including helicopters and boats.
IsDrivingPoliceVehicle(playerid)
IsPassengerPoliceVehicle(playerid)
IsInESV(playerid) // Checks if the player is in an Emergency Service Vehicle, includes boats and helicopters.
IsDrivingESV(playerid)
IsPassengerESV(playerid)
Download:
Pastebin: http://pawn.pastebin.com/f2c24835c
.inc: sfunc.inc
Don't forget to comment!
Version 1.01
Changelog:
v1.01:
Changed the functions around and added new ones,
IsInCopCar(playerid) is now IsInPoliceVehicle(playerid)
(Note):
There are more then likely other functions that do the same thing, I just couldn't find them so I made my own.
I plan to add more as I create them.
Hope you like them!
Credits:
Salmon
Install:
Save to pawn/include
Add
pawn Код:
#include <sfunc>
(assuming you saved it as sfunc.inc)
Function List:
(Returns 1 if the statement is true)
IsInPoliceVehicle(playerid) //Checks if the player is in a police vehicle, including helicopters and boats.
IsDrivingPoliceVehicle(playerid)
IsPassengerPoliceVehicle(playerid)
IsInESV(playerid) // Checks if the player is in an Emergency Service Vehicle, includes boats and helicopters.
IsDrivingESV(playerid)
IsPassengerESV(playerid)
Download:
Pastebin: http://pawn.pastebin.com/f2c24835c
.inc: sfunc.inc
Don't forget to comment!