
m4rsje
Members-
Posts
114 -
Joined
-
Last visited
Everything posted by m4rsje
-
okay, this question is abit harder im trying to make a command voor cops. when they type the command a marker is being created , but the meaning is, when a player hits the marker(i called the marker m and the createmarker part is already done ), the cops have to see their speed. i tryed getElementVelocity, but i didn't understand it, so maybe if some1 is realy nice, and gots time, he can give me an example? thx.
-
nice work so far but it aint creating the vehicle bec he doesn't know wich vehID you are calling so maybe better luck next time yeah nice work that one works!
-
you busted me i did toke a look at freeroam but anyway:P function a (cmd, ...) Its the function name and cmd is the player. the dots are the text thats being filled in. local x,y,z = getElementPosition(cmd) It are the cords that you get from the player that types. local vehID its the ID thats being filled in. vehicle = createVehicle (vehId, x, y, z) its the vehicle thats being created, vehid = the id thats being token, x,y,z are the cords its getting spawned. wapPedIntoVehicle (cmd, vehicle) the player that types (cmd), is getting warped in to the vehicle thats being created (vehicle) end closes the function addCommandHandler("vehicle", a) its the command handler that gets the information about the function called >a<, when the command /vehicle ... is being called.
-
okay guys, ive been alitle active on the forum last time, but now i got a question and i hope i can get support like i gave other people (A) ive been trying to make a command to create a vehicle. and ive been afk 3 times so i lost the way sometimes in this script anyway i got this: function a (cmd, ...) local x, y, z = getElementPosition (cmd) local vehID vehicle = createVehicle (vehID, x, y, z) warpPedIntoVehicle(cmd, vehicle) end addCommandHandler("vehicle", a) its suppose to create a vehicle that you call, like /vehicle nrg-500 thx
-
noo man the best song, that makes alot of minds go and start working, about the world and choosing the right path is: Eminem - not afraid! You are wrong, ive been a rock fan, ive been a hardstyle fan, and i do play mta. ^^ I was suppose to listen alitle to metal, but the last time im just listening to radio 538(the music from the time, ) anyway Eminem - not afraid is just a song that shot me right in the hearth!, ive token the wrong path too, but im back to normal and now working back to my normal life. got a girlfriend again, working to get my 6-pack back, and getting connection with my old friends again.
-
to bad they did netherland desurved to win, but anyway the last few minute's grr congratzz spain.
-
yeah make 2 files, 1 client 1 server on server you make the object on server, and add the code: triggerClientEvent(playerSource,"move",getRootElement(),getRootElement()); ((thx castillo)) and your function on client will be called "move"
-
i think its better that you use onClientTrigger, and onServerTrigger, make the function (to move it, if its only for 1 player i dont prefer it) in client side, and the object in server side
-
Haha i wouldn't expect spain in the finals, Who will win? Its abit hard, holland got alot of moving in there team, But spain is all the time in the attack, so Holland can get tired...
-
i dont know if you want it, but i think you can better use sql you wont have the problem, and you wont get problems later on with other scripts;) in sql he just sorts it, and the accounts wont get bugged,
-
that is true, but i dont got a clue how do to that
-
it wont be needed, the time from the respawning of the pickup is: 0. so it will never disapear
-
hmmm weird, try redownloading the resources, maybe they are damaged
-
try running freeroam and see if you get errors, maybe his map is just ,,, out dated.
-
ahh, i think i get it now, i got it working on my server just dont know the outputChatBox(no1 wants to test lawl ) addCommandHandler("party", function (plr) local x, y, z = getElementPosition(plr) local locName = getZoneName( getElementPosition( plr ) ) object1 = createObject(2993, x, y, z) object2 = createObject(2993, x+2, y, z) object3 = createObject(2993, x+2, y+2, z) object4 = createObject(2993, x, y+2, z) outputChatBox("Party Team: party started at " .. locName) end ) addCommandHandler("end", function () destroyElement(object1) destroyElement(object2) destroyElement(object3) destroyElement(object4) outputChatBox("Party Team: party has ended!") end ) there you go, a full script that works, it creates them with /party and deletes them with /end enjoy it.
-
hmm how should it be if its not for the only player, but for every one?
-
okay i fixed the bugs, and now this one is the good one: local root = getRootElement() addEventHandler("onResourceStart", root, function() a = createPickup (-707, 973, 12, 0, 0, 0) end ) addEventHandler("onPickupUse", root, function( thePlayer ) if (source == a) then local health = getElementHealth(thePlayer) if (health >=5 and health <= 100) then local money = getPlayerMoney(thePlayer) if (money >= 100) then takePlayerMoney(thePlayer, 100) setElementHealth ( thePlayer, 100 ) outputChatBox("* A hot nurse gave you a nice healing process!", thePlayer) else outputChatBox("* You dont have enough money!", thePlayer ) end else outputChatBox("*You are healhty enough to be alife", thePlayer) end end end )
-
I will try fixing the script hang on, I was out for dinner
-
50p is right, Ill explain why you cant, The effects are from Gta his self, so if you want to do edit that, You have to edit the files from Gta, but I dont think every1 will do that for a mta server. so .... you cant edit them it might even be protected, (converted a few times so you cant edit it anymore)
-
show me the hole script
-
Its an regular script Just add this to your meta.xml:
-
Thats why they should make a kind of system in the forums, if you want to post, You have to read them first, You cant go further for 30 sec's So you can read them!