Michcio Posted July 26, 2010 Posted July 26, 2010 Hi! I have a client side of police script, but I need a server side of this script. Please help me with this. Client side: local screenWidth, screenHeight = guiGetScreenSize() function vehicleLabel() for k,v in pairs(getElementsByType("player")) do if getElementData(getLocalPlayer(),"policja") == true then if isElementOnScreen(v) then if isPedInVehicle(v) then local x,y,z=getElementPosition(v) local X1,Y1 = getScreenFromWorldPosition(x,y,z) if X1 and Y1 then local px,py,pz=getElementPosition(getLocalPlayer()) local dystans=getDistanceBetweenPoints3D(x,y,z,px,py,pz) local car = getPedOccupiedVehicle( v ) if car then local speed = math.floor(getDistanceBetweenPoints3D(0,0,0,getElementVelocity(car)) * 100 * 1.61) if speed then if v ~= getLocalPlayer() then if getVehicleController(car) == v then if dystans < 45 then dxDrawText("Prędkość: "..speed.." km/h",X1,Y1, screenWidth, screenHeight,tocolor(0,0,255,255),1.5,"default","left","top",false,false,false) end end end end end end end end end end end addEventHandler("onClientRender",getRootElement(),vehicleLabel)
Castillo Posted July 26, 2010 Posted July 26, 2010 what u mean with "server side" script?? San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Michcio Posted July 26, 2010 Author Posted July 26, 2010 Type of that script is Client and I want server. Sorry because I'm Polish and my english is poor
Castillo Posted July 26, 2010 Posted July 26, 2010 Type of that script is Client and I want server. Sorry because I'm Polish and my english is poor im asking what kind of server side... btw what its the client? i dont get it. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Kayl Posted July 27, 2010 Posted July 27, 2010 He means he played on a server, grabbed the clientside version of a script and would like us to recreate the serverside part in order to recreate (may I dare say steal) the complete feature.
Castillo Posted July 27, 2010 Posted July 27, 2010 He means he played on a server, grabbed the clientside version of a script and would like us to recreate the serverside part in order to recreate (may I dare say steal) the complete feature. thats what i suposed at first look. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Michcio Posted July 27, 2010 Author Posted July 27, 2010 Yes thats true. I found this in Mods catalog. I need that script or something like this. Please help.
Castillo Posted July 27, 2010 Posted July 27, 2010 Yes thats true. I found this in Mods catalog. I need that script or something like this. Please help. Well that means steal, why should us help u if u stealing scripts from other servers...? San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Michcio Posted July 27, 2010 Author Posted July 27, 2010 Please help me create other script like this.
50p Posted July 27, 2010 Posted July 27, 2010 Please help me create other script like this. Create it yourself and consider yourself as a theft. - MTA Script Editor - Ask your scripting questions properly, please. - 50p's public resources - Meta.xml - what is it for? How is it possible LOL
Dark Dragon Posted July 27, 2010 Posted July 27, 2010 Sorry we do not support this way to obtain scripts. Closed Loads of fun for free! Also a lot of fun for free!
Recommended Posts