Cazomino05
Retired Staff-
Posts
120 -
Joined
-
Last visited
Everything posted by Cazomino05
-
function onquitdb () local sourcename = getPlayerName ( source ) getmoney = getPlayerMoney ( source ) playerTeam = getPlayerTeam ( source ) wanted = getPlayerWantedLevel( source ) skin = getElementModel ( source ) executeSQLUpdate ( "players", "Geld = '" .. getmoney .. "' WandetLevel = '" .. wanted .. "', Skin = '" .. skin .. "', Team = '" .. playerTeam .. "', Player = '" .. sourcename .. "'" ) end the problem there is your using getPlayerTeam which returns a team element, you'l want to use getTeamName on the team element so you can get a string which can be used in executeSQLUpdate to output the desired result: playerTeam = getTeamName ( getPlayerTeam ( source ) ) You also might want to declare the other variables your using in that block as local since they obviously aren't needed after the code is executed Also to speed up your query's you might want to select more than one column in the table and only use one executeSQLSelect for the code from lines 28-38 Oh as for the other error it seems you want to change line 31 to local WantedLevel = executeSQLSelect ( "players", "WandetLevel", "Player = '" .. sourcename .. "'" ) since the column isn't called WantedLevel
-
vprdf = engineLoadDFF ( "files/banshee.dff" ) You didn't specify the model ID in engineLoadDFF for the banshee nice skyline by the way
-
[Outdated] Unofficial MTA Script Editor 0.3 (4851) RELEASED!
Cazomino05 replied to 50p's topic in Scripting
looks nice KillMTADevs? D: *cries* -
Notepad++ API (for MTA functions) and function lists
Cazomino05 replied to NeonBlack's topic in Scripting
I've updated this with the changes since your "last update" (adding functions + changing params) Also added some randomly undocumented functions that don't differ in params client and server side. http://cazomino05.com/lua.xml EDIT: Use http://cazomino05.com/lua2.xml If someone could keep this up to date though it'd be nice, I don't have the time I was just generally bored. -
I've fixed the links Gamesnert didn't realise my hosting account was going to run out, thought it expired in august.
-
i have to agree about the name, i know a lot of people who think MTA is only capable of death match servers because of the name... obviously this isn't the case but it does put people off and you wouldn't believe how many times i have heard this in the sa-mp vs mta argument... seems to happen every day
-
function SuperCars() local vehicles = getElementsByType("vehicle") for k,v in ipairs(vehicles) do setElementHealth ( v, 1000 ) end end function StartTimer() setTimer ( SuperCars, 100, 150 ) end addEventHandler("onGamemodeMapStart", getRootElement(), StartTimer) Excuse the dodgy indentation can't do much about it atm Another way of doing it would be to disable Collisions, but the wiki says it has unwanted side effects at the moment so i am not sure what those are Or Disable damage client side when onVehicleDamage is triggered then remove the event handler for it after 15 seconds... preference really
-
"Project Artificial Intelligence" crew sing up.
Cazomino05 replied to Garfield's topic in General discussion
1. i like my ananimity sorry lol 2. 16 3. Pm on forum if you need it (i still don't want to end up with adverts lol) 4. betatester or programmer been doing lua quite a while now 5. none at the moment, but hoping to learn (Also happen to be doing games development at college in september) and know how most of this can be acheived using functions within dp2 and dp3 6. First team ive applied for lol, its sorta shows been working my way up scripting and programing languages for ages now get through them pretty quickly done lua, pawno, php, html, mirc and i started VB this july getting on very nicely Also have significant amount of time to spend on the creation and completion of this mod due to the holidays Sorry i don't want to be using a whole new mod -
ConvertXYToRelative function ConvertXYToRelative(Resx, Resy, x, y) local Rx = (1/Resx)*x local Ry = (1/Resy)*y return Rx,Ry end Converts an XY co-ordinate to a relative size requires the resolution you tested it on (you can find it in gta display settings) example: function ResourceStarted(resource) if (resource ~= getThisResource()) then return end local x,y = ConvertXYToRelative(800, 600, 400, 300) outputChatBox("Relative sizes: "..x..", "..y) end addEventHandler("onResourceStart", getRootElement(), ResourceStarted) 800x600 is the resolution i run gta on (more fps )
-
gta united is an incredibly big mod... considering the file size even of just the textures and models it is going to be hard to do
-
What are you looking forward to in DP3?
Cazomino05 replied to I_R_Venom's topic in Public beta testing
^^ when you alt tab it pauses the game so no one can kill you and essentially gta ignores everything that is happening -
What are you looking forward to in DP3?
Cazomino05 replied to I_R_Venom's topic in Public beta testing
peds > messing around maybe gang wars between them with mini guns heh -
^^ the only way i can think of doing that is replace the model for the bridges with a blank one (or a small one which no one will notice) with the engine client side scripting functions then replace an unused model with the bridge and put it where you want it theres plenty of unused models about in gta but if you can't find any you could also stream the mods to the client when he gets near and remove them when he is further away but all this is only really possible in dp3 because the functions seem a little buggy at the moment
-
http://cazomino05.com/dumpfiles.zip
-
Just use fileOpen if it returns false then the file does not exist
-
its code able just set the person who is after the max seats to spectate the vehicle and stick them at a certain place or whatever or you could attach them to the vehicle and make them spec it
-
its code able just set the person who is after the max seats to spectate the vehicle and stick them at a certain place or whatever or you could attach them to the vehicle and make them spec it
-
theres a pi function the the math librarys too its a bit more acurate
-
-
well our server is waiting for dp3 we can't do much without peds unfortunately, But as soon as it's done I am sure that it will draw some players away from free roam and offer another choice. Edit: although if dp3 does come out soon i cannot promise that you will see our mode finished, I have exams and coursework to do as well
-
my idea > stolezorzted na jk
-
uhh getDistanceBetweenPoints3D is better than that massive if statement... it does same thing then you can just check if its smaller than the max distance and smaller than the most recent minimum distance you store in a variable... if it isn't then set the players name to the variable and his distance then eventually you will end up with the smallest distance in one variable and his element in another could even use a table for storing the above data, just an example.
-
this has been done for a while... we had it in our dm mode and interstate has it too... the only edit you need to make to interstate is sort out the drop angle which is simple cos its just your angle +90
-
setPedAnimation aparently works for players too
-
You could animate peds and set the player to look at the ped pretending the ped is the player
