Jump to content

Como hacer?


Recommended Posts

Posted

Hola como puedo hacer para que al escribir el comando le de la bici pero no en random player si no a solamente el player que la escribe

function CreateCoche (hitElement) 
    local skin = getPlayerSkin ( hitElement ) 
   if skin == 100 then 
     local luckyBugger = getRandomPlayer() 
      local x, y, z = getElementPosition ( luckyBugger ) 
    Bici = createVehicle ( 510, x +2, y, z +2) 
    setVehicleColor( Bici, 127, 0, 0 ) 
    end 
end 
addCommandHandler ( "bici", CreateCoche ) 

lgEoigY.png

350x20_FFFFFF_FFFFFF_000000_000000.png

Posted

Usa "hitElement" en lugar de "luckyBugger" y borra getRandomPlayr.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted
function CreateCoche (hitElement) 
    local skin = getPlayerSkin ( hitElement ) 
   if skin == 100 then 
      local x, y, z = getElementPosition ( hitElement ) 
    Bici = createVehicle ( 510, x +2, y, z +2) 
    setVehicleColor( Bici, 127, 0, 0 ) 
    end 
end 
addCommandHandler ( "bici", CreateCoche ) 

560x95.png

430x73.png

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...