Om. Posted September 30, 2013 Posted September 30, 2013 Can Some One Give Me Script of Making Fix Marker ?? Pls Looking for a developer? Feel free to PM me
darhal Posted September 30, 2013 Posted September 30, 2013 if you mean getting marker in the ground just when you take the x,y,z do -1 to z #include <iostream> int main() { std::cout << "C++ is amazing <3" << std::endl; return 0; } I left MTA !... I m doing some tuts about (servers and scripting here) subscribe please
Om. Posted September 30, 2013 Author Posted September 30, 2013 if you mean getting marker in the ground just when you take the x,y,z do -1 to z Ya But If we gone into that marker our vehical get automatically fixed with 200$ cost... Looking for a developer? Feel free to PM me
JuniorMelo Posted September 30, 2013 Posted September 30, 2013 this ? newmarker1 = createMarker ( 0, 0, 5, "checkpoint", 9.9, 0, 255, 0, 255 ) -- Create a green marker function markerfix(hitElement) if ( source == newmarker1 ) then if ( isElement ( hitElement ) and getElementType ( hitElement ) == "player" ) then local ve = getPedOccupiedVehicle(hitElement) fixVehicle(ve) takePlayerMoney ( hitElement, 200 ) end end end addEventHandler("onMarkerHit", getResourceRootElement(getThisResource()), markerfix) ........... \__ ▄▂_ .........[█|||███████]▄▄▄▄▄▄▄▄▄▃▂ ..__▂▄▅█████████▅▄▃▂ I███████████████████] ...◥⊙▲⊙▲⊙▲⊙▲⊙▲⊙▲⊙◤ ░░░███████ ]▄▄▄▄▄▄▄▄ ▂▄▅████████▅▄▃▂ I███████████████████] ◥⊙▲⊙▲⊙▲⊙▲⊙▲⊙▲⊙◤
Om. Posted September 30, 2013 Author Posted September 30, 2013 this ? newmarker1 = createMarker ( 0, 0, 5, "checkpoint", 9.9, 0, 255, 0, 255 ) -- Create a green marker function markerfix(hitElement) if ( source == newmarker1 ) then if ( isElement ( hitElement ) and getElementType ( hitElement ) == "player" ) then local ve = getPedOccupiedVehicle(hitElement) fixVehicle(ve) takePlayerMoney ( hitElement, 200 ) end end end addEventHandler("onMarkerHit", getResourceRootElement(getThisResource()), markerfix) Let Me Cheak This But i need a Meta.xml of this Script pls gimme Looking for a developer? Feel free to PM me
darhal Posted September 30, 2013 Posted September 30, 2013 #include <iostream> int main() { std::cout << "C++ is amazing <3" << std::endl; return 0; } I left MTA !... I m doing some tuts about (servers and scripting here) subscribe please
Castillo Posted September 30, 2013 Posted September 30, 2013 That's a server side script, so the type must be "server" not "client". San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
myonlake Posted September 30, 2013 Posted September 30, 2013 Darhal, don't help people if you can't even give a proper meta.xml to the poor user. <meta> <script src="server.lua" type="server" /> </meta> If I helped you, please click the like button on the right Thanks!
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now