Ryuto Posted October 20, 2014 Share Posted October 20, 2014 Hola gente estaba pensado hacer un script que pongas por ejemplo /shinra y saque volando a los jugadores o tambien los autos aqui dejo un video de lo que me refiero :3 Se puede lograr eso? Muchas gracias por su atencion :3 Link to comment
manawydan Posted October 21, 2014 Share Posted October 21, 2014 https://community.multitheftauto.com/in ... ls&id=9311 local Shinra = function(p,k,ks) local x,y,z = getElementPosition(p) setPedAnimation(p,"GHANDS", "gsign2", -1, false, true, false, false) --triggerClientEvent("CreateNinjaSound",root,p,"Shinra.mp3") play sound for k,v in ipairs(getElementsByType("vehicle")) do local px11,py11,pz11 = getElementPosition(v) local pedd11 = getDistanceBetweenPoints3D(x,y,z,px11,py11,pz11) if (pedd11 <=50) then -- max distance setElementVelocity(v,2,2,2) -- change her end end end Link to comment
Ryuto Posted October 22, 2014 Author Share Posted October 22, 2014 https://community.multitheftauto.com/index.php?p=resources&s=details&id=9311 local Shinra = function(p,k,ks) local x,y,z = getElementPosition(p) setPedAnimation(p,"GHANDS", "gsign2", -1, false, true, false, false) --triggerClientEvent("CreateNinjaSound",root,p,"Shinra.mp3") play sound for k,v in ipairs(getElementsByType("vehicle")) do local px11,py11,pz11 = getElementPosition(v) local pedd11 = getDistanceBetweenPoints3D(x,y,z,px11,py11,pz11) if (pedd11 <=50) then -- max distance setElementVelocity(v,2,2,2) -- change her end end end Muchisimas gracias Link to comment
Recommended Posts