23.05.2014, 07:59
(
Последний раз редактировалось superrobot48; 23.05.2014 в 10:10.
Причина: reading the things again
)
I was so bored so i was thinking and thinking and ended up with this very easy to make include.
well here it goes
![](http://www.acceleratedonline.net/wp-content/uploads/2011/07/3-seo-quick-wins-300x300.jpg)
Features
This include can check if a Vehicle is a flying vehicle or a boat or a car or a bike!
this include might be useful
Natives
Example Usage
Bugs
http://pastebin.com/ZS5KgTdT
Dropbox: https://www.dropbox.com/s/1kfe0wfwjy1xup2/vehcheck.inc
Report any bugs.
Thanks to ****** for the suggestion of the usage of arrays
and to JFF for helping me with the arrays
Thank you So much for reading!
well here it goes
![](http://www.acceleratedonline.net/wp-content/uploads/2011/07/3-seo-quick-wins-300x300.jpg)
Features
This include can check if a Vehicle is a flying vehicle or a boat or a car or a bike!
this include might be useful
Natives
pawn Код:
native IsVehicleFlyingVehicle(vehicleid);
native IsVehicleLandVehicle(vehicleid);
native IsVehicleBoat(vehicleid);
native IsVehicleBike(vehicleid);
pawn Код:
#include <vehcheck> //add this at top
public OnPlayerEnterVehicle(playerid,vehicleid,ispassenger)
{
if(IsVehicleLandVehicle(vehicleid))
{
SendClientMessage(playerid,-1,"You are currently entering a vehicle which runs on land :P");
}
if(IsVehicleBoat(vehicleid))
{
SendClientMessage(playerid,-1,"You are currently entering a boat");
}
if(IsVehicleFlyingVehicle(vehicleid))
{
SendClientMessage(playerid,-1,"You are currently entering a flying vehicle!");
}
if(IsVehicleBike(vehicleid))
{
SendClientMessage(playerid,-1,"You are currently entering a bike");
}
return 1;
}
No bugs reported
Download
Pastebin:http://pastebin.com/ZS5KgTdT
Dropbox: https://www.dropbox.com/s/1kfe0wfwjy1xup2/vehcheck.inc
Report any bugs.
Thanks to ****** for the suggestion of the usage of arrays
and to JFF for helping me with the arrays
Thank you So much for reading!