SA-MP Forums Archive
[Include] [INC] a_car.inc V.0.3 - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Includes (https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] [INC] a_car.inc V.0.3 (/showthread.php?tid=24805)



[INC] a_car.inc V.0.3 - kevinsoftware - 02.02.2008

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



Re: [INC] a_car.inc V.0.1 - [LDT]LuxurY - 02.02.2008

nice. but very simple. :P


Re: [INC] a_car.inc V.0.1 - kevinsoftware - 02.02.2008

i know, more functions soon


Re: [INC] a_car.inc V.0.1 - [LDT]LuxurY - 02.02.2008

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


Re: [INC] a_car.inc V.0.1 - Jashugan - 02.02.2008

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


Re: [INC] a_car.inc V.0.2 - kevinsoftware - 02.02.2008

New version


Re: [INC] a_car.inc V.0.2 - kevinsoftware - 02.02.2008

Mirros's updated


Re: [INC] a_car.inc V.0.3 - kevinsoftware - 03.02.2008

thanks for new mirror :P


Re: [INC] a_car.inc V.0.3 - Sir_Brock - 16.09.2008

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

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

Код:
VehiclesName[modelid-400]



Re: [INC] a_car.inc V.0.3 - Klutty - 04.04.2009

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?






Re: [INC] a_car.inc V.0.3 - ICECOLDKILLAK8 - 04.04.2009

Replace vehicleid with GetPlayerVehicleID(playerid)