Jump to content

sel3a

Members
  • Posts

    33
  • Joined

  • Last visited

Everything posted by sel3a

  1. Thanks mate i really appreciate that it's working good but if there is a way that you can help me with to should i repeat the same things every time or i can make it easier the one that i am using it now is this--- sourcePlayer = createPed(171,2171.8740234375,1620.5299072266,999.97967529297) setElementInterior(sourcePlayer, 1) setElementDimension(sourcePlayer, 0) Whore = createPed(40,2172.2761230469,1624.2602539063,999.97326660156) setElementInterior(Whore, 1) setElementDimension(Whore, 0) sport = createPed(59,2171.7377929688,1618.6732177734,999.9765625) setElementInterior(sport, 1) setElementDimension(sport, 0) pool = createPed(120,2172.2861328125,1616.7800292969,999.9765625) setElementInterior(pool, 1) setElementDimension(pool, 0) GetOut = createPed(57,2143.2219238281,1611.6741943359,1006.1796875) setElementInterior(pool, 1) setElementDimension(GetOut, 0) hi = createPickup(2176.8752441406, 1619.5518798828, 1001.98132324219,3,1318) setElementInterior(GetOut, 1) setElementDimension(hi, 0) setPedAnimation (sourcePlayer,"ped","DUCK_cower",0,true,false,true,true) setPedAnimation (Whore,"ped","DUCK_cower",0,true,false,true,true) setPedAnimation (sport,"ped","DUCK_cower",0,true,false,true,true) setPedAnimation (pool,"ped","DUCK_cower",0,true,false,true,true) setPedAnimation (GetOut,"ped","phone_talk",0,true,false,true,true) addEventHandler("onClientPedDamage",root,function() if source == GetOut then cancelEvent() end end) addEventHandler("onClientPedDamage",root,function() if source == pool then cancelEvent() end end) addEventHandler("onClientPedDamage",root,function() if source == sport then cancelEvent() end end) addEventHandler("onClientPedDamage",root,function() if source == Whore then cancelEvent() end end) addEventHandler("onClientPedDamage",root,function() if source == sourcePlayer then cancelEvent() end end) how can i make it easier i mean i just have to change the place of the ped no need all of this spam pool = createPed(120,2172.2861328125,1616.7800292969,999.9765625) setElementInterior(pool, 1) setElementDimension(pool, 0) sport = createPed(59,2171.7377929688,1618.6732177734,999.9765625) setElementInterior(sport, 1) setElementDimension(sport, 0) setPedAnimation (pool,"ped","DUCK_cower",0,true,false,true,true) setPedAnimation (sport,"ped","DUCK_cower",0,true,false,true,true) addEventHandler("onClientPedDamage",root,function() if source == GetOut then cancelEvent() end end) i mean i have to change something in that --if source == GetOut then-- and it will work for the 2 peds i realy don't know how to explain it but i hope that you got it. Thanks
  2. Hello Everyone, Well guys some of u knows me maybe, or idk anyway guys listen, can u please tell me how to put a god mod for a ped, i mean if i create a ped, people will kill him, but i don't want that! Can u please tell me how to do it ? I don't need that cancelevent() thing, i need a full function please or just some details, anyway i hope that u guys will help me, i really need it ,i was searching for more than 2 days but i didn't find it, Thanks everyone, have a good day.
  3. i am trying to put some functions like light ON/OFF, kick the passenger from the car, ped stats, setpedhealth in one file (lua script) and every functions with command handler i did those already but now i'm trying to make. hmm let's say there is a Team in a server called Freedom Fighters i am trying to make it this team is the only team who can use the commands.
  4. i have to put this in the first line or the last ? and Thanks
  5. Well, First of all hello i am new in scripting things i started this 1 week ago i am downloading some scripts from the community and reading them this is how i'm learning. anyway i've tried to make scripts and i did it Successfully like Story rob, changing the stats, trucker simple scripts anyway i have a problem i can't lock the script to a Team (if there is players in the team they are the only players who can use the commands) i hope that you can understand what i am saying like what i said i am new so it's Very complex for me. i hope that you will help me. -----------Lights------------ function lights (src, cmd) if getPedOccupiedVehicle (src) and getPedOccupiedVehicleSeat (src) == 0 then local vehicle = getPedOccupiedVehicle (src) if getVehicleOverrideLights (vehicle) == 1 then setVehicleOverrideLights (vehicle, 2) outputChatBox ("FRF Lights On!", src, 0, 255, 0) else setVehicleOverrideLights (vehicle, 1) outputChatBox ("FRF Lights Off!", src, 255, 0, 0) end else return false end end addCommandHandler ("lights", lights) local posicoes = { { 2600.455078125, 2761.0593261719, 10.8203125 }, { 2596.9272460938,2749.5744628906,10.8203125 }, { 2604.7878417969,2751.6325683594,10.8203125 }, } function PosicaoPlayer ( thePlayer, command ) local azar = math.random ( #posicoes ) local veh = getPedOccupiedVehicle(thePlayer) if (veh) then setElementPosition(veh, unpack ( posicoes [ azar ] ) ) else setElementPosition(thePlayer, unpack ( posicoes [ azar ] ) ) end end addCommandHandler ( "fuckitwarp", PosicaoPlayer ) -----------wanted level------------ function callmks (source) setPlayerWantedLevel(source,6) playSoundFrontEnd ( source, 40) outputChatBox("Now you're wanted criminal feel free to rape the cops ",source,43, 22, 21) end addCommandHandler("wanted",callmks) --Thanks For Reading--
×
×
  • Create New...