02.09.2010, 10:54
(
Последний раз редактировалось gamer931215; 02.09.2010 в 11:07.
)
Gamer's Private Vehicle Include:
Introduction:
Well i decided it was time for me to learn how to make an include, because that is very easy to use and looks cleaner in your gamemode. So i decided to start simple with an private vehicle system. So this is my first include..
Features:
Installation:
Copy everything in pawno, and then save a "Private_Vehicles.INC" in your pawno\include folder.
Notes:
I had some help with some small optimalisations by ******, and [XST]O_x 7 & Crush3r for finding two small mistakes which caused a lot of errors in the first time.
Anyways LendVehicleToPlayer, ReturnVehicleToOwner and IsPlayerOwner are very fast tested (with only one person) so couldnt been fully tested. Please if you want to use it let me know if its fully working.
Download:
http://pastebin.com/gq6K1g2E
This is my first include, so i am open for optimalisations/tips/ideas if you have any.
Introduction:
Well i decided it was time for me to learn how to make an include, because that is very easy to use and looks cleaner in your gamemode. So i decided to start simple with an private vehicle system. So this is my first include..
Features:
Код:
native CreatePrivateVehicle(Playername,VehicleModelID,x,y,z,rot,color1,color2) native MakeVehiclePrivateForPlayer(vehicleid,playername) native MakeVehiclePublicForAll(vehicleid) native LendVehicleToPlayer(vehicleid,playerid) native ReturnVehicleToOwner(vehicleid) native IsPlayerOwner(playerid,vehicleid)
Copy everything in pawno, and then save a "Private_Vehicles.INC" in your pawno\include folder.
pawn Код:
#include <Private_Vehicles>
I had some help with some small optimalisations by ******, and [XST]O_x 7 & Crush3r for finding two small mistakes which caused a lot of errors in the first time.
Anyways LendVehicleToPlayer, ReturnVehicleToOwner and IsPlayerOwner are very fast tested (with only one person) so couldnt been fully tested. Please if you want to use it let me know if its fully working.
Download:
http://pastebin.com/gq6K1g2E
This is my first include, so i am open for optimalisations/tips/ideas if you have any.