Jump to content

#RooTs

Members
  • Posts

    1,990
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by #RooTs

  1. Assim a linha 21 ta certa ? local Timer = {} Bribe = {} xMain_ = function( ) for index,v in ipairs (getElementsByType("player")) do xWanted_(v) end end addEventHandler("onResourceStart", resourceRoot, xMain_); xWanted_ = function(v) if not isElement(v) then return end Timer[v] = setTimer( function(player) if isElement(player) then local team = getPlayerTeam(player) local NomeAcl = getAccountName(getPlayerAccount(player)) if ( team and getTeamName(team) == "Police" ) or isObjectInACLGroup ("user."..NomeAcl, aclGetGroup ( "Bope" ) ) then return end local Wanted = getPlayerWantedLevel ( player ); local x,y,z = getElementPosition ( player ); local createBlipAttachedTo(player,56); -- isso ? local Name = getPlayerName ( player ); if ( Wanted >= 1 ) then if Bribe[player] and isElement(Bribe[player]) then return end Bribe[player] = createObject(1247,x,y,z); attachElements (Bribe[player],player,0,0,1.6) ; outputChatBox(" [ "..Name.." ] Have [ "..Wanted.." ] Wanted Level! ",v,255,0,0,true); elseif ( Wanted == 0 and Bribe[player] and isElement(Bribe[player]) ) then destroyElement(Bribe[player]); Bribe[player] = nil end end end ,5000,0,v); end xJoin_ = function ( ) xWanted_(source); end addEventHandler("onPlayerJoin",root,xJoin_); xWantedDestroy_ = function ( ) if Timer[source] and isTimer(Timer[source]) then killTimer(Timer[source]); Timer[source] = nil end; if Bribe[source] and isElement(Bribe[source]) then destroyElement(Bribe[source]); Bribe[source] = nil end end addEventHandler("onPlayerQuit",root,xWantedDestroy_);
  2. if it is not, I do not know what you want .. explain in detail, please
  3. what is wrong aii? local Positions = { { 653.35773, -1769.18567, 13.57368 }, --{ x, y, z }, } for index = 1, #Positions do local test = createPickup ( Positions [ index ] [ 1 ], Positions [ index ] [ 2 ], Positions [ index ] [ 3 ], 3, 1239, 10000 ) addEventHandler("onPickupHit",test, function(player) --setPlayerWantedLevel(player,getPlayerWantedLevel(player)-1) --setPedSkin ( player, 271 ) --skin giveWeapon(player, 24, 200, true) armar --setElementHealth(player, 100) --vida --setPedArmor(player, 90) --colete end end)
  4. More I can not do this, can you help me and show an example?
  5. #RooTs

    Server name

    dxDrawText fixed all resolutions? how do?
  6. is it? addEventHandler("onClientVehicleEnter", getRootElement(),function() outputChatBox("You enter in vehicle") end) addEventHandler("onClientVehicleExit", getRootElement(),function() outputChatBox("You exit in vehicle") end) Look https://community.multitheftauto.com/ind ... ls&id=9022
  7. can someone give me an example of how would table of position of objects and how shall multiply the object in table local x, y, z = { "1548", "-1681", "13" } createPickup ( x, y, z, 3, 1239, 60000 )
  8. Thanks ( zNinja ) Ids + image nice job
  9. how do I know which script is it does not have image it is community standards? no image in rerource legend is just not enough, because it much space with images?
  10. anything is missing as the star example, among other incomplete
  11. the community is getting dirty, the admins are doing nothing pays attention admin, RESOURCE no picture https://community.multitheftauto.com/ind ... ls&id=9259 other reports i have unanswered, how many times do I have to tell it here?
  12. someone help me??????????????????????
  13. tentei local x,y,z = getElementPosition ( player ); createBlip ( x, y, z, 56 ) mais nao foi
  14. Deu certo, tem como deixa um blip pra ver no mapa quem esta sendo procurado ?
  15. https://wiki.multitheftauto.com/wiki/CreatePickup which is the right URL, this URL is missing objects I wanted all ID and Images in one LINK someone help me
  16. Alguem pode passa esse SCRIPT pra um grupo na ACL ? Nome do grupo é "Bope" só quem for do grupo "Bope" não aparecerá a estrela na cabeça... local Timer = {} Bribe = {} xMain_ = function( ) for index,v in ipairs (getElementsByType("player")) do xWanted_(v) end end addEventHandler("onResourceStart", resourceRoot, xMain_); xWanted_ = function(v) if not isElement(v) then return end Timer[v] = setTimer( function(player) if isElement(player) then local team = getPlayerTeam(player) if ( team and getTeamName(team) == "Police" ) then return end local Wanted = getPlayerWantedLevel ( player ); local x,y,z = getElementPosition ( player ); local Name = getPlayerName ( player ); if ( Wanted >= 1 ) then if Bribe[player] and isElement(Bribe[player]) then return end Bribe[player] = createObject(1247,x,y,z); attachElements (Bribe[player],player,0,0,1.6) ; outputChatBox(" [ "..Name.." ] Have [ "..Wanted.." ] Wanted Level! ",v,255,0,0,true); elseif ( Wanted == 0 and Bribe[player] and isElement(Bribe[player]) ) then destroyElement(Bribe[player]); Bribe[player] = nil end end end ,5000,0,v); end xJoin_ = function ( ) xWanted_(source); end addEventHandler("onPlayerJoin",root,xJoin_); xWantedDestroy_ = function ( ) if Timer[source] and isTimer(Timer[source]) then killTimer(Timer[source]); Timer[source] = nil end; if Bribe[source] and isElement(Bribe[source]) then destroyElement(Bribe[source]); Bribe[source] = nil end end addEventHandler("onPlayerQuit",root,xWantedDestroy_);
  17. (Perfect) I agree with you, because I have 3 reports unresolved, ADMINS let's clean up our community, please
  18. Resources poor descriptions no image description LOOK https://community.multitheftauto.com/ind ... ls&id=9259
  19. no image description https://community.multitheftauto.com/ind ... ls&id=9259
  20. como faço pra integra junto com o freeroam, um SCRIPT que permite, eu cria a FBI Ranger(veiculo) só se eu tiver a Skin ID: 286, se caso eu não estiver usando a Skin e tenta cria a FBI Ranger pelo FREEROAM aparece uma mensagem no chat falando que eu não posso criar o veiculo e se eu não tiver a skin e eu acha a FBI Ranger já criada perdida no mapa, quando eu entra nela ela desaparece(deletada do mapa) aonde eu posso acha esse roteiro ? manawydan ou StanleySathler pode me ajuda com isso ?
  21. Please stop posting off-topic, your reports will be dealt with if they look valid. what am I doing wrong here? ADMIN I am reporting copies of RESOURCES may publish copies?
  22. Here are some examples of script posted in the community https://community.multitheftauto.com/in ... ls&id=5090 https://community.multitheftauto.com/in ... ls&id=2352 https://community.multitheftauto.com/in ... ls&id=8848 https://community.multitheftauto.com/in ... ls&id=8658
×
×
  • Create New...