matthewsanta Posted February 23, 2017 Share Posted February 23, 2017 Bom estou criando um mod de usar droga e recem entrei no mundo de script.Não sei muita coisa Quero adicionar uma função de quando a pessoa utiliza o comando apareca no chat para todos verem porem não estou conseguindo ..O nome da pessoa.. Acendeu um baseado estou utilizando essas funções function givePlayerArmor(player, command) setPlayerArmor( player, 100 ) --Set player's armor to 100 when he types the command 'addarmor' local name = getPlayerName(source) outputChatBox ("Acendeu um baseado", localPlayer, 0, 255, 0, true) end addCommandHandler ( "usarmaconha", givePlayerArmor,) Link to comment
[M]ister Posted February 24, 2017 Share Posted February 24, 2017 function givePlayerArmor(player, command) setPlayerArmor( player, 100 ) --Set player's armor to 100 when he types the command 'addarmor' local name = getPlayerName(player) outputChatBox ("O "..name.." acendeu um baseado", root, 0, 255, 0, true) end addCommandHandler ( "usarmaconha", givePlayerArmor,) 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