Jump to content

Pedro Colto

Members
  • Posts

    133
  • Joined

  • Last visited

Everything posted by Pedro Colto

  1. Sim, mas não tem necessidade de ligar o motor do veiculo se ele estiver no team, porque o padrão é ligar o motor quando entra em um veiculo. @~#Pedro, eu esqueci que o player podia não ter um team, tente isso Vehiculo02 = createVehicle( 497, 1562.2846679688, -1613.2075195313, 13.3828125, 0, 0, 0) function onVehicleEnter(player,seat,jacked) if seat == 0 and not jacked and getPlayerTeam(player) ~= getTeamFromName("Policia Militar") then setVehicleEngineState(source, false) end end addEventHandler("onVehicleEnter", Vehiculo02, onVehicleEnter) Tbm não funcionou.
  2. i man, ele pode ser melhor mais tbm não é assim vamos aprendendo né, sem tentar você não consegue criar ^^
  3. eu fis tipo assim está correto? ID_VEHICULO02 = 497 Vehiculo02 = createVehicle( ID_VEHICULO02, X02, Y02, Z02, RX02, RY02, RZ02) X02,Y02,Z02 = 1562.2846679688,-1613.2075195313,13.3828125 RX02,RY02,RZ02 = 0,0,0 function onClientPlayerEnterVehicle ( theVehicle, seat, jacked ) local team = getPlayerTeam(thePlayer) if team and getTeamName(team) == "Policia Militar" then toggleControl ( "accelerate", false ) -- disable the accelerate key toggleControl ( "brake_reverse", false ) -- disable the brake_reverse key toggleControl ( "handbrake", false ) -- disable the handbrake key setControlState ( "accelerate", false ) -- force the accelerate key on end addEventHandler ( "onClientPlayerVehicleEnter", Vehiculo02,onClientPlayerEnterVehicle )
  4. Como poderia criar um script assim tipo, "Quando o grupo POLICIA MILITAR entrar no carro o carro funcionaria normal, mais se algum player que não esteja no grupo POLICIA MILITAR entrasse no carro o motor não funcionar no caso não ligar", me ajudem ^^
  5. o cara me ajudou mais uma vez, muito obrigado consegui criar ^^
  6. Alguem teria um script assim, quando player entra no carro o motor fique desligado e para ligar ele aperte alguma botão no caso alguma bind do script
  7. Besta tentei esse mais não funcionou ainda, oque poderia ser?
  8. tipo coloquei só para um cargo na acl poder digitar o comando mais n funciona o comando function giveAdminRights (playerSource, commandName, accountName) --add the function giveAdminRights and specify its arguments if accountName then --if there was an accountName entered then if isObjectInACLGroup ( 'user.'..getAccountName( getPlayerAccount( accountName ) ), aclGetGroup( 'Policia Militar' ) ) then aclGroupAddObject (aclGetGroup("VIP"), "user."..accountName) --add an ACL object using the form "user.[accountName]" to the ACL group "Admin" outputChatBox ("Account '"..accountName.."' succesfully added to the admin group", playerSource) --output a notification to the player who entered the command that the acocunt was successfully added else --else output an error message and the correct syntax of the command to the player who entered it outputChatBox ("No account name specified.", playerSource) outputChatBox ("Correct syntax: /giveAccountAdminRights [accountName]", playerSource) end end end addCommandHandler ("giveAccountAdminRights", giveAdminRights) --add a command "giveAccountAdminRights" and attch the function "giveAdminRights" to it
  9. tipo alguém teria um sistema, que funcione assim, o script iria criar uma zone no map e no gps ai eu podia organizar grupos da acl para quando o player de uma gang entrar na zone apareça um tempo para ele dominar a area.
  10. Tipo tentei criar o sistema assim, que um player do cargo "Sheriff" podesse escrever no chat /recrutar nameuser, ai quando digitasse isso o player que ele selecionou fosse para outro grupo da acl chamado "Policia Militar", mais o script nem funcionou, podem me ajudar? o codigo já exclui, dsclp
  11. O cara vllw, me ajudou bastante, muito obrigado. ^^
  12. é que no meu server, o player reloga e reseta o dinheiro dele reseta o respawn ele volta par ao spawn normal '-, mesma coisa quando desligo o sv
  13. Como posso retirar o spawnreset corretamente da gamemode [play]?
  14. coloquei para só o cargo polical abrir o portão mais não abre, nem no cargo policial e nem sem o cargo function createTheGate () myGate1 = createObject ( 971, 1544.5,-1632,15.89999961853,0,0,267.99499511719 ) myGate2 = createObject ( 971, 1544.7998046875,-1623.2001953125,15.89999961853,0,0,87.989501953125 ) end addEventHandler ( "onResourceStart", getResourceRootElement ( getThisResource () ), createTheGate ) --Open BaseAero function openMyGate ( ) if isObjectInACLGroup ( "user."..accountname, aclGetGroup ( "Policial Civil" ) ) then -- if isObjectInACLGroup( 'user.'..getAccountName( getPlayerAccount( player ) ), aclGetGroup( 'Policial Civil' ) ) then moveObject ( myGate1, 2500, 1544.5,-1638.9000244141,15.89999961853 ) moveObject ( myGate2, 2500, 1544.8000488281,-1615.5999755859,15.89999961853 ) else end end -- end addCommandHandler("portao",openMyGate) --Close BaseAero function movingMyGateBack () if isObjectInACLGroup ( "user."..accountname, aclGetGroup ( "Policial Civil" ) ) then moveObject ( myGate1, 2500, 1544.5,-1632,15.89999961853 ) moveObject ( myGate2, 2500, 1544.7998046875,-1623.2001953125,15.89999961853 ) else end end addCommandHandler("portaof",movingMyGateBack)
  15. Tipo queria um script que se o player morre por cargo policial no caso o grupo policial na minha gm é 'Policial Civil', se ele morresse para policia e estivesse com level wanted ele fosse presso, e cada estrelinha , exemplo 1 estrelinha ficaria um determinado tempo preso, 2 estrelinhas outro determinado tempo, e assim vai.
  16. Aqui está img: http://i.imgur.com/ckU9cSU.png?1 Codigo: marker = createMarker(2319.7861328125,836.51287841797,6.7419986724854,"cylinder",2,255,0,0,255) function command(player) if player then if not isElementWithinMarker(player,marker) return end local account = getPlayerAccount(player) if account and isObjectInACLGroup("user."..getAccountName(account),aclGetGroup("Soldado")) then setElementModel(player,0) giveWeapon(player,31,500) end end end addCommandHandler("batercartao", command)
  17. Banex, eu vi esse script, mais não está funcinando apareceu alguns erros, tentei resoslver e conseguir fazer apenas o marker aparecer mais quando digito comando "/batercartao" ele não funciona, será que fis algo de errado?? Script marker = createMarker(2326.4553222656,838.19079589844,6.3528056144714,"cylinder",2,255,0,0,255) function command(player) if player then if not isElementWithinMarker(player,marker) then local account = getPlayerAccount(player) if account and isObjectInACLGroup("user."..getAccountName(account),aclGetGroup("Soldado")) then setElementModel(player,0) giveWeapon(player,31,500) end end end end addCommandHandler("batercartao", command)
  18. criei um grupo no acl chamado "Policial" e queria um script que o comando só ira valer para este grupo do acl, que nesse comando seria /Batercartao o personagem pegaria uma skin e um kit de armas só que isso dentro de um checkpoint
  19. alguem pdoe me mandar um script que apenas um determinado grupo do acl poderá usar uma determinada skin?
  20. olá, alguem pode me dizer como possa fazer para o player de meu server player logar com uma skin da minha escolha.
×
×
  • Create New...