Jump to content

Chuevo

Members
  • Posts

    5
  • Joined

  • Last visited

Everything posted by Chuevo

  1. Not sure if this will work, but; function drogas(thePlayer, theCommand) if not (getPlayerMoney(thePlayer) >= 100) then outputChatBox( "Você deve ter $100 ou mais para usar este comando.", thePlayer, 220, 0, 0) else takePlayerMoney(thePlayer, 100) outputChatBox( "#FFFF00Você gastou 100$ em 1 pedra de CRACK!", thePlayer, 255, 255, 0) setPedArmor(thePlayer, 97) setElementHealth(thePlayer, 30) outputChatBox("Você usou Drogas!", thePlayer, 255, 255, 255) local daBlockz = getElementData(thePlayer, "blockz") local daAnmiz = getElementData(thePlayer, "animz") if not (daBlockz == "crack") and not (daAnimx == "Bbalbat_Idle_02") then setPedAnimation(thePlayer, "CRACK", "Bbalbat_Idle_02") setElementData(thePlayer, "blockz", "crack") setElementData(thePlayer, "animz", "Bbalbat_Idle_02") else setPedAnimation(thePlayer, false) setElementData(thePlayer, "blockz", false) setElementData(thePlayer, "animz", false) end end end addCommandHandler( "drogas", drogas ) function onClientPlayerEnterVehicle ( theVehicle, seat, jacked ) setTimer ( onClientPlayerEnterVehicle() 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", true ) -- force the accelerate key on outputChatBox ( "Efeito das Drogas Passou" ) end, 5000, 1 ) end addEventHandler ( "onClientPlayerVehicleEnter", getRootElement(), onClientPlayerEnterVehicle )
  2. Welp. Missed the part where it said the function only works clientside if it's used with the server the player is connected to. I suppose the issue solved then. Thanks.
  3. It's possible to remove world-objects using the MTA Map Editor. Click on the blue, crossed out globe and then click on the object you wish to remove.
  4. It's being used client side.
  5. Hi. When I use the fetchRemote function, I get the error message #1006, which is "Destination IP not allowed" according to the wiki. This error did not occur on a secondary server we tested on. I came here, due to the fact that I have no idea what's up. We have most ports blocked and I tried to unblock port 80 and port 443 which is for HTTP and HTTPS, if I am not mistaken. But hey? What do I have to lose? Maybe some of you are able to help me out here. Thank you.
×
×
  • Create New...