Jump to content

Pickup De Skin em Interior não funciona


Recommended Posts

local marker = createMarker(232.75312805176, 112.35497283936, 1003.2257080078, "cylinder", 3, 255,255,255, 0)
inf = createPickup (232.75312805176, 112.35497283936, 1003.2257080078, 3, 1275, 0 )
setElementDimension(marker,0)
setElementInterior(marker,10)
 
function infoMedic (thePlayer)
     if exports.grp_dashboard:isPlayerInFaction(thePlayer , 20) then
         outputChatBox(" ", thePlayer, 255,255,255, true)
         outputChatBox(" ", thePlayer, 255,255,255, true)
         outputChatBox(" ", thePlayer, 255,255,255, true)
         outputChatBox(" ", thePlayer, 255,255,255, true)
         outputChatBox(" ", thePlayer, 255,255,255, true)
         outputChatBox(" ", thePlayer, 255,255,255, true)
         outputChatBox(" ", thePlayer, 255,255,255, true)
         outputChatBox("#FFA000**Comando Geral Rotam #FFFFFFID: #FFA0001", thePlayer, 255,255,255, true)
         outputChatBox ( "#FFA000**Policia Normal Rotam #FFFFFFID: #FFA0002" , thePlayer , 255 , 255 , 255 , true )
         outputChatBox ( "#FFA000**Feminina Rotam #FFFFFFID: #FFA0003" , thePlayer , 255 , 255 , 255 , true )
         outputChatBox ( "#FFA000Syntax: /roupa #FFFFFFID" , thePlayer , 255 , 255 , 255 , true )
     fim
fim
addEventHandler ( "onPickupUse" , inf , infoMedic )
 
função setS ( thePlayer , commandName , setSkin )
     se exporta . grp_dashboard : isPlayerInFaction ( thePlayer , 2 ) then
          if isElementWithinMarker ( thePlayer , marker ) then
             if ( setSkin == "1" ) então
                 setPedSkin ( thePlayer , 267 )
             fim
             if ( setSkin == "2" ) então
                 setPedSkin ( thePlayer , 295 )
             fim
             if ( setSkin == "3" ) então
                 setPedSkin ( thePlayer , 85 )
             fim
         fim
     fim
fim
addCommandHandler ( "roupa" , setS )
Link to comment

Hi @ChamitoLindo, when you make a topic put the title in English because this category is only for English. If you want to ask for help in your native language, go to the Other Languages category. Also, when you ask for help, say what problem you have, don't just attach the script code waiting for someone to do it for you.

Link to comment
  • 3 weeks later...

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...