Jump to content

Pickup voltar para default. (REMOVER SKIN)


Recommended Posts

Olá queria saber como faço pra botar no pickup o código para remover a skin tipo, os pickups pegam farda e depois outro pickup pra voltar a skin que usamos apaisana.

zombiehunterpickup55555 = createPickup (1542.3504638672, -1620.3002929688, 13.55456161499, 3, 1275, 0 )
function zombiehunterskinpickup55555 ( thePlayer )
  setPedSkin ( thePlayer, 33 )
  setPlayerTeam ( thePlayer, teamzombie )
 setElementData ( thePlayer, "zombie", true  )  
end
addEventHandler ( "onPickupUse", zombiehunterpickup55555, zombiehunterskinpickup55555 )
addEventHandler ("onPickupUse", getRootElement(), 

function (playerWhoUses)
  if (source == zombiehunterpickup55555) then
    setPlayerNametagText (playerWhoUses, "" .. getPlayerName (playerWhoUses))
    setElementData (playerWhoUses, "job", "farm")
  end
end)

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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