[FilterScript] SA-MP 0.3c Vehicle Control System (Control everything, you want)
#1

Hey there!

First I just released the Vehicle engine control snippet, but here's the script to control the whole car. Simple and effective. Feel free to edit it for your needs, but please keep the credits. It's my first release thought

Requirements: Using:
  • /veh [function]
Features:
  • Engine
  • Lights
  • Alarm
  • Doors (lock)
  • Bonnet
  • Boot
  • Objective
Example:
  • /veh engine
Download:

Pastebin
Upload.ee
Reply
#2

Thanks Auxxx, Very useful!
Reply
#3

Cool, gj!
Reply
#4

Isn't this on the example page for 0.3c stuff? All you did was change it to dcmd and some colours..
Reply
#5

Quote:
Originally Posted by [FU]Victious
View Post
Isn't this on the example page for 0.3c stuff? All you did was change it to dcmd and some colours..
No it is'nt and it's not dcmd, It's zcmd. You can also read, that I'm going to UPDATE.
Reply
#6

Quote:
Originally Posted by Auxxx
View Post
is'nt and it's not dcmd, It's zcmd.
You critise me of my typo yet you made two mistakes.
Reply
#7

pawn Code:
stock IsVehicleEngineOn(vehicleid)
{
    new engine, lights, alarm, doors, bonnet, boot, objective;
    GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
    return engine;
}
Instead of using variables, use that, I have it on my script and works fine.
Reply
#8

Quote:
Originally Posted by [FU]Victious
View Post
You critise me of my typo yet you made two mistakes.
Did'nt know it's a typo AND I'm not from England like you, so yeah.

EDIT:

Quote:
Originally Posted by FreshDoubleX
View Post
Thanks Auxxx, Very useful!
Quote:
Originally Posted by Flyfishes
View Post
Cool, gj!
Thanx guys, at least somebody appreciates what I've done.
Reply
#9

UPDATED

New Features:
  • Engine
  • Lights
  • Alarm
  • Doors (lock)
  • Bonnet
  • Boot
  • Objective
EDIT: Sorry for double post
Reply
#10

Awesome update Auxxx. Useful for RP servers ! Great.
Reply
#11

Quote:
Originally Posted by FreshDoubleX
Посмотреть сообщение
Awesome update Auxxx. Useful for RP servers ! Great.
Thanx. I'm still trying to figure out, why the doors wont open and maybe I'm gonna make a fuel system, In-Car data, Fuel system or something similar to this too...

I'm not sure, but the door opening might be a bug of SA-MP. :/
Reply
#12

Код:
C:\Documents and Settings\Administrator\Desktop\Cyber RolePlay      [0.3c]\filterscripts\Engine03c.pwn(26) : error 017: undefined symbol "ManualVehicleEngineAndLights"
C:\Documents and Settings\Administrator\Desktop\Cyber RolePlay      [0.3c]\filterscripts\Engine03c.pwn(27) : warning 217: loose indentation
C:\Documents and Settings\Administrator\Desktop\Cyber RolePlay      [0.3c]\filterscripts\Engine03c.pwn(34) : warning 217: loose indentation
C:\Documents and Settings\Administrator\Desktop\Cyber RolePlay      [0.3c]\filterscripts\Engine03c.pwn(35) : warning 217: loose indentation
C:\Documents and Settings\Administrator\Desktop\Cyber RolePlay      [0.3c]\filterscripts\Engine03c.pwn(43) : error 017: undefined symbol "GetVehicleParamsEx"
C:\Documents and Settings\Administrator\Desktop\Cyber RolePlay      [0.3c]\filterscripts\Engine03c.pwn(44) : error 017: undefined symbol "SetVehicleParamsEx"
C:\Documents and Settings\Administrator\Desktop\Cyber RolePlay      [0.3c]\filterscripts\Engine03c.pwn(50) : error 017: undefined symbol "GetVehicleParamsEx"
C:\Documents and Settings\Administrator\Desktop\Cyber RolePlay      [0.3c]\filterscripts\Engine03c.pwn(51) : error 017: undefined symbol "SetVehicleParamsEx"
C:\Documents and Settings\Administrator\Desktop\Cyber RolePlay      [0.3c]\filterscripts\Engine03c.pwn(69) : error 017: undefined symbol "GetVehicleParamsEx"
C:\Documents and Settings\Administrator\Desktop\Cyber RolePlay      [0.3c]\filterscripts\Engine03c.pwn(70) : error 017: undefined symbol "SetVehicleParamsEx"
C:\Documents and Settings\Administrator\Desktop\Cyber RolePlay      [0.3c]\filterscripts\Engine03c.pwn(76) : error 017: undefined symbol "GetVehicleParamsEx"
C:\Documents and Settings\Administrator\Desktop\Cyber RolePlay      [0.3c]\filterscripts\Engine03c.pwn(77) : error 017: undefined symbol "SetVehicleParamsEx"
C:\Documents and Settings\Administrator\Desktop\Cyber RolePlay      [0.3c]\filterscripts\Engine03c.pwn(95) : error 017: undefined symbol "GetVehicleParamsEx"
C:\Documents and Settings\Administrator\Desktop\Cyber RolePlay      [0.3c]\filterscripts\Engine03c.pwn(96) : error 017: undefined symbol "SetVehicleParamsEx"
C:\Documents and Settings\Administrator\Desktop\Cyber RolePlay      [0.3c]\filterscripts\Engine03c.pwn(102) : error 017: undefined symbol "GetVehicleParamsEx"
C:\Documents and Settings\Administrator\Desktop\Cyber RolePlay      [0.3c]\filterscripts\Engine03c.pwn(103) : error 017: undefined symbol "SetVehicleParamsEx"
C:\Documents and Settings\Administrator\Desktop\Cyber RolePlay      [0.3c]\filterscripts\Engine03c.pwn(121) : error 017: undefined symbol "GetVehicleParamsEx"
C:\Documents and Settings\Administrator\Desktop\Cyber RolePlay      [0.3c]\filterscripts\Engine03c.pwn(122) : error 017: undefined symbol "SetVehicleParamsEx"
C:\Documents and Settings\Administrator\Desktop\Cyber RolePlay      [0.3c]\filterscripts\Engine03c.pwn(128) : error 017: undefined symbol "GetVehicleParamsEx"
C:\Documents and Settings\Administrator\Desktop\Cyber RolePlay      [0.3c]\filterscripts\Engine03c.pwn(129) : error 017: undefined symbol "SetVehicleParamsEx"
C:\Documents and Settings\Administrator\Desktop\Cyber RolePlay      [0.3c]\filterscripts\Engine03c.pwn(147) : error 017: undefined symbol "GetVehicleParamsEx"
C:\Documents and Settings\Administrator\Desktop\Cyber RolePlay      [0.3c]\filterscripts\Engine03c.pwn(148) : error 017: undefined symbol "SetVehicleParamsEx"
C:\Documents and Settings\Administrator\Desktop\Cyber RolePlay      [0.3c]\filterscripts\Engine03c.pwn(154) : error 017: undefined symbol "GetVehicleParamsEx"
C:\Documents and Settings\Administrator\Desktop\Cyber RolePlay      [0.3c]\filterscripts\Engine03c.pwn(155) : error 017: undefined symbol "SetVehicleParamsEx"
C:\Documents and Settings\Administrator\Desktop\Cyber RolePlay      [0.3c]\filterscripts\Engine03c.pwn(173) : error 017: undefined symbol "GetVehicleParamsEx"
C:\Documents and Settings\Administrator\Desktop\Cyber RolePlay      [0.3c]\filterscripts\Engine03c.pwn(174) : error 017: undefined symbol "SetVehicleParamsEx"
C:\Documents and Settings\Administrator\Desktop\Cyber RolePlay      [0.3c]\filterscripts\Engine03c.pwn(180) : error 017: undefined symbol "GetVehicleParamsEx"
C:\Documents and Settings\Administrator\Desktop\Cyber RolePlay      [0.3c]\filterscripts\Engine03c.pwn(181) : error 017: undefined symbol "SetVehicleParamsEx"
C:\Documents and Settings\Administrator\Desktop\Cyber RolePlay      [0.3c]\filterscripts\Engine03c.pwn(199) : error 017: undefined symbol "GetVehicleParamsEx"

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


26 Errors.
Please HELP!
Reply
#13

Quote:
Originally Posted by ZmaXy
Посмотреть сообщение
Код:
C:\Documents and Settings\Administrator\Desktop\Cyber RolePlay      [0.3c]\filterscripts\Engine03c.pwn(26) : error 017: undefined symbol "ManualVehicleEngineAndLights"
C:\Documents and Settings\Administrator\Desktop\Cyber RolePlay      [0.3c]\filterscripts\Engine03c.pwn(27) : warning 217: loose indentation
C:\Documents and Settings\Administrator\Desktop\Cyber RolePlay      [0.3c]\filterscripts\Engine03c.pwn(34) : warning 217: loose indentation
C:\Documents and Settings\Administrator\Desktop\Cyber RolePlay      [0.3c]\filterscripts\Engine03c.pwn(35) : warning 217: loose indentation
C:\Documents and Settings\Administrator\Desktop\Cyber RolePlay      [0.3c]\filterscripts\Engine03c.pwn(43) : error 017: undefined symbol "GetVehicleParamsEx"
C:\Documents and Settings\Administrator\Desktop\Cyber RolePlay      [0.3c]\filterscripts\Engine03c.pwn(44) : error 017: undefined symbol "SetVehicleParamsEx"
C:\Documents and Settings\Administrator\Desktop\Cyber RolePlay      [0.3c]\filterscripts\Engine03c.pwn(50) : error 017: undefined symbol "GetVehicleParamsEx"
C:\Documents and Settings\Administrator\Desktop\Cyber RolePlay      [0.3c]\filterscripts\Engine03c.pwn(51) : error 017: undefined symbol "SetVehicleParamsEx"
C:\Documents and Settings\Administrator\Desktop\Cyber RolePlay      [0.3c]\filterscripts\Engine03c.pwn(69) : error 017: undefined symbol "GetVehicleParamsEx"
C:\Documents and Settings\Administrator\Desktop\Cyber RolePlay      [0.3c]\filterscripts\Engine03c.pwn(70) : error 017: undefined symbol "SetVehicleParamsEx"
C:\Documents and Settings\Administrator\Desktop\Cyber RolePlay      [0.3c]\filterscripts\Engine03c.pwn(76) : error 017: undefined symbol "GetVehicleParamsEx"
C:\Documents and Settings\Administrator\Desktop\Cyber RolePlay      [0.3c]\filterscripts\Engine03c.pwn(77) : error 017: undefined symbol "SetVehicleParamsEx"
C:\Documents and Settings\Administrator\Desktop\Cyber RolePlay      [0.3c]\filterscripts\Engine03c.pwn(95) : error 017: undefined symbol "GetVehicleParamsEx"
C:\Documents and Settings\Administrator\Desktop\Cyber RolePlay      [0.3c]\filterscripts\Engine03c.pwn(96) : error 017: undefined symbol "SetVehicleParamsEx"
C:\Documents and Settings\Administrator\Desktop\Cyber RolePlay      [0.3c]\filterscripts\Engine03c.pwn(102) : error 017: undefined symbol "GetVehicleParamsEx"
C:\Documents and Settings\Administrator\Desktop\Cyber RolePlay      [0.3c]\filterscripts\Engine03c.pwn(103) : error 017: undefined symbol "SetVehicleParamsEx"
C:\Documents and Settings\Administrator\Desktop\Cyber RolePlay      [0.3c]\filterscripts\Engine03c.pwn(121) : error 017: undefined symbol "GetVehicleParamsEx"
C:\Documents and Settings\Administrator\Desktop\Cyber RolePlay      [0.3c]\filterscripts\Engine03c.pwn(122) : error 017: undefined symbol "SetVehicleParamsEx"
C:\Documents and Settings\Administrator\Desktop\Cyber RolePlay      [0.3c]\filterscripts\Engine03c.pwn(128) : error 017: undefined symbol "GetVehicleParamsEx"
C:\Documents and Settings\Administrator\Desktop\Cyber RolePlay      [0.3c]\filterscripts\Engine03c.pwn(129) : error 017: undefined symbol "SetVehicleParamsEx"
C:\Documents and Settings\Administrator\Desktop\Cyber RolePlay      [0.3c]\filterscripts\Engine03c.pwn(147) : error 017: undefined symbol "GetVehicleParamsEx"
C:\Documents and Settings\Administrator\Desktop\Cyber RolePlay      [0.3c]\filterscripts\Engine03c.pwn(148) : error 017: undefined symbol "SetVehicleParamsEx"
C:\Documents and Settings\Administrator\Desktop\Cyber RolePlay      [0.3c]\filterscripts\Engine03c.pwn(154) : error 017: undefined symbol "GetVehicleParamsEx"
C:\Documents and Settings\Administrator\Desktop\Cyber RolePlay      [0.3c]\filterscripts\Engine03c.pwn(155) : error 017: undefined symbol "SetVehicleParamsEx"
C:\Documents and Settings\Administrator\Desktop\Cyber RolePlay      [0.3c]\filterscripts\Engine03c.pwn(173) : error 017: undefined symbol "GetVehicleParamsEx"
C:\Documents and Settings\Administrator\Desktop\Cyber RolePlay      [0.3c]\filterscripts\Engine03c.pwn(174) : error 017: undefined symbol "SetVehicleParamsEx"
C:\Documents and Settings\Administrator\Desktop\Cyber RolePlay      [0.3c]\filterscripts\Engine03c.pwn(180) : error 017: undefined symbol "GetVehicleParamsEx"
C:\Documents and Settings\Administrator\Desktop\Cyber RolePlay      [0.3c]\filterscripts\Engine03c.pwn(181) : error 017: undefined symbol "SetVehicleParamsEx"
C:\Documents and Settings\Administrator\Desktop\Cyber RolePlay      [0.3c]\filterscripts\Engine03c.pwn(199) : error 017: undefined symbol "GetVehicleParamsEx"

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


26 Errors.
Please HELP!

Are you sure, you have 0.3c version of SA-MP server?
If not, you can download it from Here.
Reply
#14

I use 0.3c :/

100 % sure
Reply
#15

Then you have wrong includes or opened it with a pawno, which takes the old includes. Simply go to the directory for the newest version of SA-MP (0.3c RC1). Then go to pawno folder, Start pawno, select File -> Open and select the filterscript. Compile & Use it
Reply
#16

Nice job.
Reply
#17

nice... tnx
Reply
#18

Hey man, can you upload the zcmd include file that you got? My old one is a little bit messy and i really want the one your using
Reply
#19

Great way to learn.
Reply
#20

Quote:

Doors (for some reason, it does'nt
work right now)

This one locks the car for all players, it works, I've tested.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)