[FS] Dynamic Vehicle Ownership | MySQL - Non MySQL [Dinamcini ownership vozila]

Započeo Dj_Scratch, Maj 25, 2011, 18:57:56 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 3 gostiju pregledaju ovu temu.

Dynamic Vehicle Ownership | MySQL - Non MySQL version available!!!

I now present you with this Vehicle Ownership system using MySQL!

* Here's a new version, this version is a NON MySQL, so just add the filterscript and run it!
This new version has Mod Saving!!!


Current Mode: MySQL Version

Commands:

    /vCreate < Vehicle ID > < Price > < Color1 > < Color2 >

    /RemoveVeh

    /BuyVeh

    /SellVeh

    /Park

    /VExit

    /vSetPrice

    /vSetOwner

    /vSetColor < Color1 > < Color2 >

    /Plate - Changes your vehicle's plate and it saves.

    /RemoveMods

    /Lock

    /Unlock


Remember: You must be log onto RCON to start creating your vehicles!!!



Credits:
G-Stylezzzz = MySQL
Y_Less = sscanf
Zeex = ZCMD
Slick = SII



Usage:
Its pretty simple to use, create a vehicle using the command: /vcreate
The vehicle will spawn on your location, you can include your own admin system to make admin drive 'Unbought' vehicles.
You can park the vehicles, and they will re-spawn on that location.
You can set the vehicle's price.
** Mod saving **

-------

Remember to read the little note inside the GM.
The included .sql file is not the DB, its a table, so add it to your current DB!!

Note: Make sure that this is on your first line of filterscripts!

Bugs | Problems:
I didn't fully tested the system, but everything i tested was working!


Download:
MySQL && File Version: Vehicle Ownership

Extra Notes:
This is the new version. I decided to release it today after a few tests that went well. This new version has Mod Saving Support.
I also added a few code optimizations and bug fixes.

Here's the current change log:
pawn Code:

/* =============== CHANGE LOG: =================

    April 25, 2011:
        * Minor optimizations & known bugs fixed.
        * Fixed a bug where the car would spawn but the plate wouldn't set!
        * Added /RemoveVeh command for the .INI version!
        * Added 'TogglePlayerControllable(playerid, true);' when removing the vehicle, else you would be frozen.
        * Merge the FILE and MySQL version together. Togable commenting/uncommenting the line: #define USE_MYSQL_VERSION
        * Added some security for the MySQL version.
        * Added Paint Job saving for both .INI and MySQL versions!
    April 26, 2011:
        * Added mod saving for both versions!!
        * Cleaned up the code a bit.
    May 18, 2011:
        * Fixed a few errors regarding the mod loading for the .INI version.
        * Added /lock /unlock commands. /Exit command has been renamed to /VExit.
        * Added Max Ownable Vehicles per player. Current limit is set to 2 vehicles.
        * Fixed all known bugs ( Most recent bugs reported on the topic )
    May 24, 2011:
        * Fixed the vehicles not getting their mods after death.
        * Cleaned up the code a bit.
*/

MySQL:
pawn Code:

#define USE_MYSQL_VERSION


File Version ( Non MySQL):
pawn Code:

//#define USE_MYSQL_VERSION



Preuzeto sa: http://forum.sa-mp.com/showthread.php?t=222233
Izradio: [L3th4l]
Preveo: Dj_Scratch




[size=125pt]Kratki opis[/size]
Vrlo lijepa FS, dinamicni ownership vozila, ima par komandi koje su navedene gore, naime prevelik je pravi opis da ga prevodim, hehe, pa zato pisem sazetak dolje. Preveo sam ukupno 100%, moguce da mi je negdje malo pobjeglo pa cemo zaokruziti na 99.9% ;) . Uglavnom FS ce sigurno mnogima posluziti, uz to je prevedena na ExYu jezik tako da vam sacuvam malo vremena ;)

Download http://solidfiles.com/d/69b9f/

vrlo lijepo od tebe sto si preveo, samo ja imam jedan problem... upalim svoj server, naravno kucni host, i upisem /createveh (bilo sta da upisem) i onda mi se izgasi samp-server.exe ... sto znaci ugasi mi se server...



[quote author=
WeeD link=topic=25812.msg190200#msg190200 date=1306417235]
vrlo lijepo od tebe sto si preveo, samo ja imam jedan problem... upalim svoj server, naravno kucni host, i upisem /createveh (bilo sta da upisem) i onda mi se izgasi samp-server.exe ... sto znaci ugasi mi se server...
[/quote]


hmmm, jesi se registrirao kao rcon admin? -> /rcon login <pass>


Citat: Johnny[E] poslato Maj 26, 2011, 20:39:32 POSLE PODNE
Mogo si bar prevesti Text bas si lenj :/


Prvo: Nisan lenj nego san lin
Drugo: Sve u FS je prevedeno, prevoditi onaj gornji text u opisu je po meni bezveze jer svak zna engleski ko koristi ovaj forum a onaj ko nezna ima u sazetku sve sta treba znat, a bez engleskog ne moze ni nauciti nista vise od onoga u sazetku ;)

Johnny

Da svako zna engleski jezik ovaj forum ne bi postojao i nebi se zvao BALKAN SAMP nego bi se koristio sluzbeni SA:MP forum. Kad si toliki englez ovo je za tebe maciji kasalj ;)

Citat: Johnny[E] poslato Maj 27, 2011, 02:13:20 PRE PODNE
Da svako zna engleski jezik ovaj forum ne bi postojao i nebi se zvao BALKAN SAMP nego bi se koristio sluzbeni SA:MP forum. Kad si toliki englez ovo je za tebe maciji kasalj ;)

ma nemoj mi ti rec zasto i kako postoji ovaj forum...... onaj ko nezna engleski kako ce znati ista drugo, pogotovo skriptanje i programiranje jer bez engleskom sada se ne moze nigdje(ili nekog drugog stranog jezika)

I da, ide me engleski i je mi macji kasalj ;)

cristiane


Johnny

Citat: Koksildo poslato Maj 28, 2011, 11:00:31 PRE PODNE
Citat: Dj_Scratch poslato Maj 27, 2011, 21:14:52 POSLE PODNE
I da, ide me engleski i je mi macji kasalj ;)
Da,toliko te ide da ne znaš prevesti tri rečenice.

Ma pusti ga Koskido vidis da je prso u mozgu bre doso tu pre mesec dana i on meni tu nesto vodi neku pricu o ovom forumu.... Strasno...

A ja mogu da se kladim da ovde pola njih dobro ne zna engleski zasto ja svaku FS koju sam objavio sam preveo da bi kako da se izrazim skripteri zeleli da tu FS koriste ili da je ne skidaju. ;)


PS : To sto je za tebe maciji kasalj engleski video sam dokazao si se.

Necemo vise off od teme.

Verujem da ces posle ovog posta otici na Google Translate prevesti i praviti se pametan :*
Poslednja Izmena: Maj 28, 2011, 13:46:16 POSLE PODNE od Johnny[E]



JBT ovo neradi na Mexicu
Doso sam na selo,
Tu kod moga dede..
Ovaj vidim ekstra ribu, Znaci kako sarmu jede..
Sazno da je Mara, Jedan fetis ima..
Kada cuva krave,Ona voli da ga prima.
Cujem u daljini kako krava muce,
Poce mene Mara za stojka tu da vuce.
Udri Stojko jako, znam da nije lako,
Ja sam sitne gradje zato ti je sladje.....

REF.. 2x

Kuku lele,kuku lele,
Ima glavu kao tele..
Kuku lele,lele kuku,
Imam papke mesto ruku..

Pogledo na sat, podne vec je bilo,
Eto moje Mare, sede mi u krilo..
Kaze da me zeli da za stojkom zudi..
Vidim da je vrela dok joj diram grudi..
Malu dok sam diro, tele vec je jelo..
Tad povika baba Maro vrati se u selo..
Iza babe ide jetrva pa tele..
Necu da se zenim alo Maro ko te j***.....???

REF.. 2x

Kuku lele,kuku lele,
Ima glavu kao tele.. Kuku lele,lele kuku, Imam papke mesto ruku....