[Include] g_cars - Control the windows and doors - 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] g_cars - Control the windows and doors (
/showthread.php?tid=585204)
g_cars - Control the windows and doors -
Goncho28 - 11.08.2015
Welcome!
Original post: http://forum.sa-mp.com/showthread.ph...28#post3487328 (Im from Spanish Section)
This include can control the doors and windows, only works in 0.3.7
Functions
-
WindowOpen(vehicleid, window)
(Window 0-3) "true" if is open and "false" if is closed
-
DoorOpen(vehicleid, door)
(Door 0-3) "true" if is open and "false" if is closed
-
UpdateWindow(vehicleid, window)
(Window0-3) It does not return a specific value
-
UpdateDoor(vehicleid, door)
(Door0-3) It does not return a specific value
CALLBACKS
-
IfWindowIsOpen(vehicleid, window);
Check if the car has a open window
-
IfWindowIsClosed(vehicleid, window);
Check if the car has a closed window
-
IfDoorIsOpen(vehicleid, door);
Check if the car has a open door
-
IfDoorIsClosed(vehicleid, door);
Check if the car has a closed door
Download and installation
For install this include you only have to put the include in "pawno/include".