Jump to content

Laluis23

Members
  • Posts

    4
  • Joined

  • Last visited

Laluis23's Achievements

Vic

Vic (3/54)

0

Reputation

  1. tentei mas n deu tipo era pra ser assim /olx carro sem doc 30.00 dai ia aparecer no final "jogar x esta vendendo carro sem doc por R$30.00" ComandoDoChatGlobal = "olx" function adminchat ( thePlayer, _, ... ) local tbl = {...} local valor = tbl[#tbl] table.remove(tbl) local message = table.concat ( tbl, " " ) if ( isPlayerOnGroup ( thePlayer ) ) then conta = getAccountName(getPlayerAccount(thePlayer)) if isObjectInACLGroup ("user."..conta, aclGetGroup ( "Console" ) ) then outputChatBox("#838B83[ #A020F0O#9ACD32L#FFA500X #838B83 ]#ffffff #00FF00» : #ffffffO Jogador #00FF00"..getPlayerName(thePlayer).. ", #ffffffestá vendendo #ffffff #DAA520"..message, player, 255, 255, 255, true) elseif isObjectInACLGroup ("user."..conta, aclGetGroup ( "Everyone" ) ) then outputChatBox("#838B83[ #A020F0O#9ACD32L#FFA500X #838B83 ]#ffffff #00FF00» : #ffffffO Jogador #00FF00"..getPlayerName(thePlayer).. ", #ffffffestá vendendo #ffffff #DAA520"..message, player, 255, 255, 255, true) end end end end setElementData ( thePlayer, "Chat:Avisado", true ) setElementData ( thePlayer, "Chat:Delay1",true ) setTimer ( setElementData, 5000, 1, thePlayer, "Chat:Delay1", false ) end addCommandHandler ( ComandoDoChatGlobal, adminchat ) -------------------------------------------------------------------------------------------- function isPlayerOnGroup ( thePlayer ) local account = getPlayerAccount ( thePlayer ) local inGroup = false for _, group in ipairs ( { "Everyone" } ) do if isObjectInACLGroup ( "user.".. getAccountName ( account ), aclGetGroup ( group ) ) then inGroup = true break end end return inGroup end
  2. @Lord Henry, eu digo fazer assim /olx carro sem doc 40, dai aparece no chat carro sem doc por R$40... Como eu faço isso ? perdão por algum erro, sou iniciante..
  3. Oi gente, gostaria de saber como fazer um chat de vendas, por exemplo assim: Quando o jogador digitar /olx carro sem doc, vai aparecer no chat "O jogador "tal", está vendendo carro sem doc. E assim vai Mas queria saber como faço para depois disso ele possa adicionar um valor do veiculo e iria ficar + ou - assim, Exemplo: ,/olx carro sem doc 4000 O jogador X está vendendo carro sem doc por R$4000. Tentei fazer a parte dos números mas n consegui ComandoDoChatGlobal = "olx" function adminchat ( thePlayer, _, ... ) local message = table.concat ( { ... }, " " ) if ( isPlayerOnGroup ( thePlayer ) ) then for _, player in ipairs ( getElementsByType ( "player" ) ) do if ( isPlayerOnGroup ( player ) ) then conta = getAccountName(getPlayerAccount(thePlayer)) if isObjectInACLGroup ("user."..conta, aclGetGroup ( "Console" ) ) then outputChatBox("#838B83[ #A020F0O#9ACD32L#FFA500X #838B83]#ffffff #00FF00» : #ffffffO Jogador #00FF00"..getPlayerName(thePlayer).. ", #ffffffestá vendendo #ffffff #DAA520"..message, player, 255, 255, 255, true) elseif isObjectInACLGroup ("user."..conta, aclGetGroup ( "Everyone" ) ) then outputChatBox("#838B83[ #A020F0O#9ACD32L#FFA500X #838B83]#ffffff #00FF00» : #ffffffO Jogador #00FF00"..getPlayerName(thePlayer).. ", #ffffffestá vendendo #ffffff #DAA520"..message, player, 255, 255, 255, true) end end end end setElementData ( thePlayer, "Chat:Avisado", true ) setElementData ( thePlayer, "Chat:Delay1",true ) setTimer ( setElementData, 5000, 1, thePlayer, "Chat:Delay1", false ) end addCommandHandler ( ComandoDoChatGlobal, adminchat ) -------------------------------------------------------------------------------------------- function isPlayerOnGroup ( thePlayer ) local account = getPlayerAccount ( thePlayer ) local inGroup = false for _, group in ipairs ( { "Everyone" } ) do if isObjectInACLGroup ( "user.".. getAccountName ( account ), aclGetGroup ( group ) ) then inGroup = true break end end return inGroup end
  4. Gostaria de saber como fazer um script, no qual se dois jogadores estiverem em uma acl ou grupo, não poderiam se matar.. no caso se atirarem um no outro não vai dar dano algum...
×
×
  • Create New...