Jump to content

Walid

Members
  • Posts

    1,491
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Walid

  1. Walid

    afk script

    why you need to use onClientCursorMove , try to use : getPlayerIdleTime()
  2. Walid

    On playSound

    Maybe you can put somthing like that in your meta file "song" download="false" />
  3. You can use this guiEditSetMasked(, true) Edit : Sorry i didn't see xTravax post.
  4. As JR10 said It's not that simple. but i still agree with you the custom animation will change MTA to another game. Need a hard work.
  5. Walid

    CIT vip??

    Question like this must be asked on CIT forum : www.cit2.net.
  6. Why there is nothing called setElementMoney() it can be like this. function setElementMoney(player, amount) if (not isElement(player)) then return end givePlayerMoney(player, amount) end
  7. Try to use : setCameraMatrix()
  8. Try this : function followPolice(thecop, theprisoner) if (isPedInVehicle(theprisoner)) then return end local copx, copy, copz = getElementPosition (thecop) local prisonerx, prisonery, prisonerz = getElementPosition (theprisoner) copangle = (360 - math.deg (math.atan2 ((copx - prisonerx), (copy - prisonery)))) % 360 setPedRotation(theprisoner, copangle) setCameraTarget(theprisoner, theprisoner) local dist = getDistanceBetweenPoints2D (copx, copy, prisonerx, prisonery) --Your code here end
  9. Walid

    event system

    You can use my event system i create it with prime for CIT server a long time ago.
  10. Try to use a table like this : local radio = { {radio url } , {radio url } , {radio url } , } for i , v in pairs (radio) do local row = guiGridListAddRow(RadioStationList) guiGridListSetItemText(RadioStationList, row, 1, v[1], false, false) end
  11. Try this i'm not sure setPedAnimation(localPlayer,"BSKTBALL","BBALL_react_miss")
  12. it's not correct simply because u didn't add camX , CamY , camY , headX, headY , headY more than that i think SkatCh got confused between Draw voice image and the voice. it can be like this: local voice_range = 50 addEventHandler ( "onClientPlayerVoiceStart", root, function() if (source and isElement(source) and getElementType(source) == "player") then local sX, sY, sZ = getElementPosition(localPlayer) local rX, rY, rZ = getElementPosition(source) local distance = getDistanceBetweenPoints3D(sX, sY, sZ, rX, rY, rZ) if distance <= voice_range then voicePlayers[source] = true end end end )
  13. lol lkaz 7bibi ye5a mouch kont esmek me4ever ija inbox 5alini nafra7 bik hhhhh lik wa7cha frer . Sorry for spamming this topic and good luck with your project.
  14. Ken ta3mel mziya na7i ha signature , w chkounek inti 7ata ta3mel advert lserveret men8ir matchewer l'owner mte3hom.
  15. Try to use Table like this : Ped = { {X = 2171.8740234375, Y= 1620.5299072266,Z= 999.97967529297, SkinID = 171, Interior = 2 , Dimension = 5}, {X = 2172.2761230469,Y= 1624.2602539063,Z= 999.97326660156,SkinID = 40,Interior = 1, Dimension = 5}, {X = 2171.7377929688,Y= 1618.6732177734,Z= 999.9765625,SkinID = 59,Interior = 10, Dimension = 5}, {X = 2172.2861328125,Y= 1616.7800292969,Z= 999.9765625,SkinID = 120 ,Interior = 15 , Dimension = 5}, } for a,b in pairs(Ped) do local Ped = createPed(b["skinID"], tostring(b["X"]), tostring(b["Y"]), tostring(b["Z"])) etc ......
  16. here you go : function cancelExplode() cancelEvent() end addEventHandler("onVehicleExplode", root, cancelExplode)
  17. Sorry i don't undrestand your question but As i undrestand you are asking about how to change name tag color , you can use html color codes like this ex : #FFFFFFName
×
×
  • Create New...