FeniXMTA Posted January 13, 2019 Share Posted January 13, 2019 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
DNL291 Posted January 13, 2019 Share Posted January 13, 2019 getPickupWeapon retorna um valor numérico, deve ser: if getPickupWeapon(source) == 31 then Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now