Jump to content

Bloquear Armas


Recommended Posts

function onPickupHitFunc ( thePlayer )                  
    if getPickupType ( source ) == 2 then              
       if getPickupWeapon(source) == "31" then
	   cancelEvent()
	    outputChatBox("Voce nao tem autorização para usar essa arma!", thePlayer) 
        end
    end
end
addEventHandler ( "onPickupHit", root, onPickupHitFunc ) 

Alguem verifica para min porque está função não esta funcionando. 

Agradeço.

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