[Include] Gamer's Private Vehicle System
#1

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:
Код:
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)
Installation:
Copy everything in pawno, and then save a "Private_Vehicles.INC" in your pawno\include folder.
pawn Код:
#include <Private_Vehicles>
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.
Reply
#2

nice


!
Reply
#3

As I said the in the help topic; simple, but useful.
Good one
Reply
#4

Nice one!
As LarzI said,simple,but useful
Reply
#5

Quote:
Originally Posted by [FU]Victious
Посмотреть сообщение
nice!
Quote:
Originally Posted by LarzI
Посмотреть сообщение
As I said the in the help topic; simple, but useful.
Good one
Quote:
Originally Posted by [XST]O_x
Посмотреть сообщение
Nice one!
As LarzI said,simple,but useful
Thanks guys
This is maybe an simple include, but very usefull too (atleast it is for my server :P)
Reply
#6

Instead of saving playernames in a string of size 32, make It 24 for a small improvement, as playernames can't be
bigger then 24 character.

Other then that, awesome work on it.
Reply
#7

Very nice!
Reply
#8

nice, awesome'
Reply
#9

Thanks all,

Quote:
Originally Posted by Mike Garber
Посмотреть сообщение
Instead of saving playernames in a string of size 32, make It 24 for a small improvement, as playernames can't be
bigger then 24 character.

Other then that, awesome work on it.
Oh didnt know, thanks.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)