-
Posts
521 -
Joined
-
Last visited
Everything posted by Axel
-
So, i want to make a huge colshape over LS and when someone leaves it, they get killed.. colArea = createColRectangle( 41.2666015625, -2812.1865234375,2900,2200 ) setElementDimension(colArea,0) setElementInterior(colArea,0) function elementColShapeLeave( colShapeLeft ) if colShapeLeft == colArea then outputChatBox( "Nu ai voie sa iesi din LS!",source,255,255,255 ) killPed ( source) end end addEventHandler( "onElementColShapeLeave", getRootElement(), elementColShapeLeave ) The problem is that when someone goes in some interiors they get killed..
-
In ultima vreme hostarea in PC-ul meu a devenit un chin.. Caut un host romanesc 24/7 cat mai ieftin pe Windows. Serverul este prin MySql deci trebuie setat corespunzator. Plata se va face din donatiile jucatorilor(sunt destui care vor dona) Deasemenea putem face vre-o intelegere...
-
Yes, that's what i mean. But i noticed it spams the chatbox, is there a way to show it only one time?
-
That worked just fine:D Thanks Solidsnake14. Now i'm trying to show a me action when the player is targeting a player or a car. function onPlayerTarget ( targetElem ) target = getElementType ( targetElem ) if target and getElementModel ( targetElem ) == 'player' then exports.global:sendLocalMeAction(source, "tinteste spre "..target..".") elseif target and getElementModel ( targetElem ) == 'vehicle' then exports.global:sendLocalMeAction(source, "tinteste spre "..target..".") else return end end addEventHandler ( "onPlayerTarget", getRootElement(), onPlayerTarget ) -- This shows a warning : 2:Bad argument: getElementType
-
There is no error in the scripts, it's just the thing that in MTA/GTA shows u some weapons with you can shot from the vehicle when u enter it. In my case Uzi . So what i need help in is that when they enter the car, the message to not appear.
-
So i made 2 little scripts: function onEnter ( theVehicle, seat, jacked ) local veh = getVehicleName ( theVehicle ) exports.global:sendLocalMeAction(source, "intra in vehiculul "..veh..".") end addEventHandler ( "onPlayerVehicleEnter", getRootElement(), onEnter ) -- When someone enters the vehicle, a local me action is sent.. and function weaponSwitch ( previousWeaponID, currentWeaponID ) if currentWeaponID == 3 then exports.global:sendLocalMeAction(source, "scoate un baston de politist.") elseif currentWeaponID == 4 then exports.global:sendLocalMeAction(source, "scoate un cutit.") elseif currentWeaponID == 2 then exports.global:sendLocalMeAction(source, "scoate o crosa de golf.") elseif currentWeaponID == 5 then exports.global:sendLocalMeAction(source, "scoate o bata de baseball.") elseif currentWeaponID == 6 then exports.global:sendLocalMeAction(source, "scoate o lopata.") elseif currentWeaponID == 7 then exports.global:sendLocalMeAction(source, "scoate o bata de biliard.") elseif currentWeaponID == 8 then exports.global:sendLocalMeAction(source, "scoate o sabie.") elseif currentWeaponID == 9 then exports.global:sendLocalMeAction(source, "scoate o drujba.") elseif currentWeaponID == 22 then exports.global:sendLocalMeAction(source, "scoate un pistol.") elseif currentWeaponID == 23 then exports.global:sendLocalMeAction(source, "scoate un pistol cu amortizor.") elseif currentWeaponID == 24 then exports.global:sendLocalMeAction(source, "scoate un pistol.") elseif currentWeaponID == 25 then exports.global:sendLocalMeAction(source, "scoate un shotgun.") elseif currentWeaponID == 26 then exports.global:sendLocalMeAction(source, "scoate un shotgun improvizat.") elseif currentWeaponID == 27 then exports.global:sendLocalMeAction(source, "scoate un shotgun de elita.") elseif currentWeaponID == 28 then exports.global:sendLocalMeAction(source, "scoate un Uzi.") elseif currentWeaponID == 29 then exports.global:sendLocalMeAction(source, "scoate un MP5.") elseif currentWeaponID == 30 then exports.global:sendLocalMeAction(source, "scoate un Ak-47.") elseif currentWeaponID == 31 then exports.global:sendLocalMeAction(source, "scoate un M4.") elseif currentWeaponID == 32 then exports.global:sendLocalMeAction(source, "scoate un Tech-9.") elseif currentWeaponID == 34 then exports.global:sendLocalMeAction(source, "scoate un Sniper.") end end addEventHandler ( "onPlayerWeaponSwitch", getRootElement(), weaponSwitch ) -- When someone changes his weapon, a local me action is sent The problem is that when someone enters a vehicle a local action saying that he takes out a Uzi is sent. Does somebody knows how can i cancel the showing of that message?
-
Yes , everything it's set up perfectly..
-
Basically when i press t nothing happens.. Maybe we need to check if the player is logged in like here : function grabbAnimation(thePlayer, cmd, arg) local logged = getElementData(thePlayer, "loggedin") if (logged==1) then exports.global:applyAnimation( thePlayer, "BAR", "Barserve_bottle", 2000, false, false, false) end end addCommandHandler ( "grabbottle", grabbAnimation, false, false )
-
No, looks like it didn't work.. hmm
-
Now i want to make like.. when u write something on the chatbox it starts an animation, and when u send it it stops function chating(message, messageType) if messageType == 0 then exports.global:applyAnimation( getRootElement(), "SWIM", "Swim_Glide", 2000, false, false, false) end end addEventHandler ( "onPlayerChat", getRootElement(),chating)
-
Isn't there a way to replace it with a txd file?
-
No one knows? Sorry for double post..
-
So i got a hud.txd file that changes the target used to shot.. I want to replace it with the original one but what it should replace.. Can someone tell me an example?
-
Thanks Benxamix2, and you too Kenix.
-
I tested in the first one.. function parkourAnimation(thePlayer, cmd, arg) local logged = getElementData(thePlayer, "loggedin") if (logged==1) then setWorldSpecialPropertyEnabled("extrajump", true) end end addCommandHandler ( "parkour", parkourAnimation, false, false )
-
Off. Thanks On. Well i tried it and it returns a nil value..
-
Well anyone can jump higher.. What i mean is only if u use the command , now without using it you can jump higher..
-
Only when the player uses the command it should jump, is it possible?
-
I mean.. Like u press SHIFT and jump, i want to make it jump more than that with /parkour command
-
But how do you make it jump forwad?
-
I'm trying to make a parkour command to jump more than normal, but idk how to make the jump bigger.. function parkour(thePlayer) local logged = getElementData(thePlayer, "loggedin") if (logged==1) then --Here , I was thinking about getControlState but.. end end addCommandHandler ( "parkour", parkour, false, false ) And also i have a question, how can i make 2 animations play in a row?