Jump to content

Doninho

Members
  • Posts

    8
  • Joined

  • Last visited

Everything posted by Doninho

  1. Vou fazer uma uma loja de skin, mais queria que antes do play comprar ele poder ver o modelo da skin dentro do painel dx ... tipo object Preview..... Pelo meno umas dica ,,......
  2. --- Exemplo ---simplismente o play nao entra dentro do carro ----- alguem pode me ajudar -----ou se nao uma maneira do lado client reconhecer o nome do carro do lado server function koringacarro () moto = createVehicle (400,2081.697, -1466.724, 23.692) end addCommandHandler ("cmd",koringacarro)
  3. ------ai os markers sao criados nestas posicoes que aparenta esta dentro de uma tabela local ExemploMarkers = { {101010-,202020202,5150};----piza1 {10201010-,202020202,5150};----Piza2 {10160010-,202020202,5150};----pizza3 {10150010-,202020202,5150}; {108520-,202020202,5150}; {12020-,202020202,5150}; {20220-,202020202,5150}; {101200-,202020202,5150}; {10120200-,202020202,5150}; {1012020210-,202020202,5150}; }
  4. function findRotation3D(x1,y1,x2,y2) local X = math.abs( x2 - x1 ) local Y = math.abs( y2 - y1 ) Rotm = math.deg( math.atan2( Y , X ) ) if ( x2 >= x1 ) and ( y2 > y1 ) then -- north-east Rotm = 90 - Rotm elseif ( x2 <= x1 ) and ( y2 > y1 ) then -- north-west Rotm = 270 + Rotm elseif ( x2 >= x1 ) and ( y2 <= y1 ) then -- south-east Rotm = 90 + Rotm elseif ( x2 < x1 ) and ( y2 <= y1 ) then -- south-west Rotm = 270 - Rotm end return (630-Rotm) end x, y, z = 1882.148, -1311.159, 14.5 function showArrowservente(thePlayer) if ( localPlayer ) then if ( localPlayer == getLocalPlayer() ) then local px, py, pz = getElementPosition(localPlayer) arrowservente = createObject(1318, px, py, pz) attachElements ( arrowservente, localPlayer ) setObjectScale ( arrowservente, 0.2) setElementCollisionsEnabled(arrowservente, false) addEventHandler("onClientPreRender", getRootElement (), rotArrowservente) end end end
  5. AMIGOS , SOU NOVO EM SCRIPT MTA,,, PRECISAVA DE UMA SEGUINTE FUNÇÃO TIPO EU FIZ UM SCRIPT A ONDE O PLAY PODE ROUBAR A LOJA .. TIPO EU QUERIA QUE ANTES DELE COMEÇAR A ROUBAR . O SCRIPT FISESE UMA VERIFICAÇÃO . SE ELE POSSUI UMA ARMAR . PRA PODER ROUBA ALI
  6. gente estou fazendo um novo trabalho de entregador de pizza......... minha logica é o seguinte, o play entrou no marker. e pegou o trabalho e foi dado uma moto,e uma skin para o play logo apos uma outra marker vai aparecer para o play ir pegar a pizza.dentro deste marker quando ele entra neste marker .é setado uma animação... ai eu queria que onde a moto dele estivesse aparecesse um marke atraz dela....por que ai eu iria configura uma animação ,tipo fingindo que ele ta pondo a pizza na caixa de entraga que fica na parte de taz da mto socorrooooooooooooooooooooo
×
×
  • Create New...