-
Posts
4,144 -
Joined
-
Last visited
-
Days Won
1
Everything posted by dzek (varez)
-
Actually you can earn five pounds per hour in coal mine
-
Edit fr_server.lua and remove this code: addEventHandler('onPlayerChat', g_Root, function(msg, type) if type == 0 then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox(getPlayerName(source) .. ': #FFFFFF' .. msg:gsub('#%x%x%x%x%x%x', ''), g_Root, r, g, b, true) end end )
-
Little help (gas stations, useful objects,ppl for beta-test)
dzek (varez) posted a question in Client
Hi, I'm creating new gamemode, and while I was coding I created a list of things I need. I can (sooner or later) do it by myself, but I want to finish it ASAP So here's the list: - locations of all gas stations around San Andreas (don't need to be exact coordinates - can be just red crosses on San Andreas map. I have to get coords by myself anyway) - this probably can be found in other resources, but I'm busy with coding other things - locations of little buildings near roads, where will be marker, that you can hit at high speed and get back to road. Something like this - ID/name of object, which I can pass-through with car (something like that building near standard freeroam spawn point - but with bigger 2nd entrance - one is ok, 2nd is too small - you should be able to drive-through it with high speed with no damage). If there's no such object I'll do custom one - but I'd like to avoid it, I barely remeber how to do 3d models - ID/name of objects looking like garages (something more complicated than clean walls (like near CJ house) - i preffer objects like this) - but i need only a few (3, 4 ?) - or this also can be just locations of such objects. - if anyone is interested - a good STUNT mapper, that is keeping eye on every detail, and with a lot of fun ideas - and of course beta-testers (not now, I need several days to make usuable beta of my gamemode) - up to 8 players (my gamemode is limited to 8 players) Game mode of course will be released to community - I don't even own server where I can use it ^^ If you can and want to help - reply here or send me PM. UPDATE: - Also thing i need: locations from where you can't escape with vehicle (like you are stuck forever, or you can only die [in water]) - example -
Hope you have seen this. Also $5 monthly is a joke I think. Also I see you failed at stealing and looking for scripter? Almost noone is successfully finding a scripter here, your "bad past" makes it even worse.
-
https://wiki.multitheftauto.com/wiki/OnPlayerVehicleExit check 1st argument, and use it, instead of getting ped occupied veh.
-
well i limited the wheels that goes off to two - so its possible to drive (but slowly, and a lot of sparkles are around), and (depending on which wheels got removed) sometimes there is no way to turn
-
yup. for sqlite you dont need to download anything - its included
-
i think it's not possible to getAccountData of player which is not on the server. you without database you will be able only to create a rank of online players - which is nothing useful i think
-
did it. now i can see it. weird. i checked html - it was not sending the content to me o_O
-
maybe: if deaths == 0 or deaths=="0" then
-
im not sure if you can do this witout sqlite/mysql - as you can't get data from offline players. just save kills to database, then just select, ordering by kills.
-
Hmm, i thought they replacing PED.IFP file.. After googling for a while - i think they are replacing this, then connect to servers. It's not like samp support this, but allow to do this. But i think this causing synchronization problems.. Whatever.
-
and does it still triggerring this error/warning you mentioned in first post? deaths = 0? Is it true? By doing this little debug you should spot your bug..
-
Why somebody should spent his/her time for fullfilling your requests? There is no request forum. And probably will never be. Even PAID (real money!) requests are not often fullfilled. You have to learn scripting by yourself. Come back if you are stuck with scripting. Solid already gave you link to Wiki - check it out, especially "Scripting" box in main page. Good luck. Topic locked.
-
These are random parts taken from topic from this forums. You didn't make any of them.. First one should work if meta.xml is made properly. Topic locked - this is just mess, and.. stolen, even if you found these parts in public.
-
lol, Blokker, this is almost empty page just header, and footer, no body
-
as description says - yes well, wheel is just removed, i cant make it fall off and still be visible like in explosion, but its cool anyway ^^
-
i know, now explain me - what's wrong with my solution? on this line you are doing arithmetic operation ratio = (tonumber(zombiekills)/tonumber(deaths))*10 error says it cant do arithmetics on nil value so it means one/both of them (zombiekills or deaths) are arithmetic. you are triggering it from server. syntax is ok, so the only problem is data that is send from server i suggested you to fix it. you said something that i didnt understand.. try little debug. function upClientStats(zombiekills,deaths) outputDebugString("got values: "..tostring(zombiekills).." and "..tostring(deaths)) if deaths == 0 then guiSetText(ratioLabel, "Ratio: N/A") else ratio = (tonumber(zombiekills)/tonumber(deaths))*10 guiSetText(ratioLabel, "Ratio: "..tostring(ratio).." %") end end addEvent("updateClientStatsGui", true) addEventHandler("updateClientStatsGui", getRootElement(), upClientStats) function info2(cliente) local account = getPlayerAccount (cliente); if not isGuestAccount(account) then local zombiekills = getAccountData(account,"zombieKills") if (not zombiekills) then zombiekills=0 end local deaths = getAccountData(account,"deaths") if (not deaths) then deaths=0 end outputDebugString("sending values: "..tostring(zombiekills).." and "..deaths) triggerClientEvent (cliente,"updateClientStatsGui",cliente,zombiekills,deaths) end end addEvent("getInfoFromClient", true) addEventHandler("getInfoFromClient", getRootElement(), info2)
-
The site I was talking about: http://mta.dzek.metal.info/
-
And what is wrong with my solution?
-
that was just general information did solid remove his reply again? hmm
-
genting = getting? Erm, i don't know what is your problem now..
-
afair - yes. Am i wrong?
-
this is wrong and causing error: connection = mysql_connect ( localhost, ****,****, ****, 3306, socket ) you should only edit lines 10-15 revert line 18 to original, and don't touch anything you dont have idea of.
