[Include] [INC] a_car.inc V.0.3
#1

Hello,

V.0.1 This is a vehicle include with easy functions for your vehicle.
V.0.2 New functions added.
V.0.3 New functions added.

Do you have any idea's Send a PM to my
When you use this, please give a credit for me

FUNCTIONS:
GetVehicleName(modelid); - Get a vehicle name (string)
SetVehicleName(modelid,carname[]); - Set a vehicle name (string)
DiveVehicle(vehicleid,Float:height); - skydive a car
ShowVehicleNameForPlayer(playerid,modelid,color) - Show he name of vehicle for player (colorid between 1 and 12)
SetVehicleParameters(vehicleid,locked,objective,co lor1,color2,Float:health) - Simple params for all players
FlipCar(vehicleid) - Flip the vehicle
HealCar(vehicleid) - Give the vehicle a full health
ClearCar(vehicleid) - Remove all player from that car


BUGS/ERRORS:
ERROR: When you use GetVehicleName you got a error i am try to fix it
BUG__: DiveVehicle dont works wit bike's

PLEASE REPORT BUGS


DOWNLOAD:
V.0.3 - pastebin - Script
V.0.3 - raipitshare - a_car.inc
V.0.3 - mirror by G-sTyLeZzZ - a_car1.inc
V.0.3 - mirror by G-sTLeZzZ - a_car1.rar

V.0.2 - pastebin - Script
V.0.2 - raipidshare - a_car.inc
V.0.2 - mirror by G-sTyLeZzZ - a_car2.inc
V.0.2 - mirror by G-sTLeZzZ - a_car2.rar

V.0.1 - pastebin - Script
V.0.1 - raipidshare - a_car.inc
V.0.1 - mirror by G-sTyLeZzZ - a_car.inc
V.0.1 - mirror by G-sTLeZzZ - a_car.rar

MIRROR'S ARE WELCOME
Reply
#2

nice. but very simple. :P
Reply
#3

i know, more functions soon
Reply
#4

Quote:
Originally Posted by kevinsoftware
i know, more functions soon
what functions do you want to create?
Reply
#5

edit: ah nevermind this doesnt do what I need. Good job though.
Reply
#6

New version
Reply
#7

Mirros's updated
Reply
#8

thanks for new mirror :P
Reply
#9

I think the reason your GetVehicleName bug comes from...

Код:
VehiclesName[modelid]-400
It should be...

Код:
VehiclesName[modelid-400]
Reply
#10

pawn Код:
if (strcmp(cmdtext, "/flip", true) == 0)
    {
      if (IsPlayerInAnyVehicle(playerid))
      {
        FlipCar(vehicleid);
        }
        return 1;
        }
Gives me the error at compiling:
Код:
C:\Program\SAMP Server\gamemodes\sldm.pwn(667) : error 017: undefined symbol "vehicleid"
In what way should I define it?



Reply
#11

Replace vehicleid with GetPlayerVehicleID(playerid)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)