LucasBaker Posted June 14, 2013 Share Posted June 14, 2013 not worked CODE: function mensagemAdmin (player) local accountName = getAccountName(getPlayerAccount(player)) if isObjectInACLGroup("user."..accountName , aclGetGroup("SuperModerator")) then outputChatBox ( "#FFFF00O Administrador "..getPlayerName(player).." Entrou em Modo Trabalho", getRootElement(), 255, 0, 0, true ) setElementHealth (player, 100 ) setPlayerArmor (player, 100 ) setPlayerSkin(player, 217) end addCommandHandler ( "godon", mensagemAdmin ) function mensagemAdmin2 (player) local accountName = getAccountName(getPlayerAccount(player)) if isObjectInACLGroup("user."..accountName , aclGetGroup("SuperModerator")) then outputChatBox ( "#FFFF00O Administrador "..getPlayerName(player).." Entrou em Modo Jogador", getRootElement(), 255, 0, 0, true ) setPlayerSkin(player, 0) end addCommandHandler ( "godoff", mensagemAdmin2 ) Link to comment
iPrestege Posted June 14, 2013 Share Posted June 14, 2013 -- # Server Side function mensagemAdmin (player) local accountName = getAccountName(getPlayerAccount(player)) if isObjectInACLGroup("user."..accountName , aclGetGroup("SuperModerator")) then outputChatBox ( "#FFFF00O Administrador "..getPlayerName(player).." Entrou em Modo Trabalho", getRootElement(), 255, 0, 0, true ) setElementHealth (player, 100 ) setPedArmor (player, 100 ) setElementModel(player, 217) end end addCommandHandler ( "godon", mensagemAdmin ) function mensagemAdmin2 (player) local accountName = getAccountName(getPlayerAccount(player)) if isObjectInACLGroup("user."..accountName , aclGetGroup("SuperModerator")) then outputChatBox ( "#FFFF00O Administrador "..getPlayerName(player).." Entrou em Modo Jogador", getRootElement(), 255, 0, 0, true ) setElementModel(player, 0) end end addCommandHandler ( "godoff", mensagemAdmin2 ) Missing 2 end also some function's i don't know if it's still work but try this any way. Link to comment
LucasBaker Posted June 14, 2013 Author Share Posted June 14, 2013 Did it work? yes it worked 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