[Include] Gamer's Private Vehicle System - 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] Gamer's Private Vehicle System (
/showthread.php?tid=173359)
Gamer's Private Vehicle System -
gamer931215 - 02.09.2010
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.
Re: Gamer's Private Vehicle System -
WillyP - 02.09.2010
nice
!
Re: Gamer's Private Vehicle System -
LarzI - 02.09.2010
As I said the in the help topic; simple, but useful.
Good one
Re: Gamer's Private Vehicle System -
[XST]O_x - 02.09.2010
Nice one!
As LarzI said,simple,but useful
Re: Gamer's Private Vehicle System -
gamer931215 - 02.09.2010
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)
Re: Gamer's Private Vehicle System -
Mike Garber - 02.09.2010
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.
Re: Gamer's Private Vehicle System -
nuriel8833 - 02.09.2010
Very nice!
Re: Gamer's Private Vehicle System -
Ricop522 - 02.09.2010
nice, awesome'
Re: Gamer's Private Vehicle System -
gamer931215 - 02.09.2010
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.