Ryuto Posted October 19, 2014 Share Posted October 19, 2014 Hola gente hace poco me estaba preguntando como puedo crear un ped y que el ped aparesca justo donde estoy parado yo osea.Poner /ped y aparesca donde estoy yo parado con que posicion X Y Z se puede lograr esto.Muchas gracias por su atencion espero que logren entender lo que digo Link to comment
Tomas Posted October 19, 2014 Share Posted October 19, 2014 function createPedOnMyPos(player,command,skin) if skin then if tonumber(skin) ~= nil then if tonumber(skin) < 312 then if tonumber(skin) == 118 or tonumber(skin) == 119 or tonumber(skin) == 148 or tonumber(skin) == 149 or tonumber(skin) == 3 or tonumber(skin) == 4 or tonumber(skin) == 5 or tonumber(skin) == 6 or tonumber(skin) == 8 or tonumber(skin) == 42 or tonumber(skin) == 65 or tonumber(skin) == 74 or tonumber(skin) == 86 or tonumber(skin) == 119 or tonumber(skin) == 149 or tonumber(skin) == 208 tonumber(skin) == 239 tonumber(skin) == 273 tonumber(skin) == 289 then outputChatBox("ID Skin invalida",player,255,0,0) return end local x,y,z = getElementPosition(player) createPed(x,y,z,skin) else outputChatBox("El skin debe ser inferior a 312",player,255,0,0) else outputChatBox("El skin debe ser un número",player,255,0,0) else outputChatBox("El syntax correcto es: /ped ",player,255,0,0) end end end end addCommandHandler("ped",createPedOnMyPos) Link to comment
Ryuto Posted October 19, 2014 Author Share Posted October 19, 2014 function createPedOnMyPos(player,command,skin) if skin then if tonumber(skin) ~= nil then if tonumber(skin) < 312 then if tonumber(skin) == 118 or tonumber(skin) == 119 or tonumber(skin) == 148 or tonumber(skin) == 149 or tonumber(skin) == 3 or tonumber(skin) == 4 or tonumber(skin) == 5 or tonumber(skin) == 6 or tonumber(skin) == 8 or tonumber(skin) == 42 or tonumber(skin) == 65 or tonumber(skin) == 74 or tonumber(skin) == 86 or tonumber(skin) == 119 or tonumber(skin) == 149 or tonumber(skin) == 208 tonumber(skin) == 239 tonumber(skin) == 273 tonumber(skin) == 289 then outputChatBox("ID Skin invalida",player,255,0,0) return end local x,y,z = getElementPosition(player) createPed(x,y,z,skin) else outputChatBox("El skin debe ser inferior a 312",player,255,0,0) else outputChatBox("El skin debe ser un número",player,255,0,0) else outputChatBox("El syntax correcto es: /ped ",player,255,0,0) end end end end addCommandHandler("ped",createPedOnMyPos) Oye pero yo quiero que crear un ped que sea del numero 156 y aparesca en mi posicion Link to comment
Tomas Posted October 19, 2014 Share Posted October 19, 2014 Oh... ._. function createPedOnMyPos(player,command) x,y,z = getElementPosition(player) createPed(x,y,z,156) end addCommandHandler("ped",createPedOnMyPos) Link to comment
Recommended Posts