Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. the command is "testsirene" not "startsirene" o_o
  2. With the code below it will give the player who joined a M4 with 9999 bullets. function giveWeaponsOnJoin() giveWeapon(source,31,9999,true) end addEventHandler("onPlayerJoin",getRootElement(),giveWeaponsOnJoin)
  3. Maybe give some more information o_o? P.S: try to speak proper english
  4. Jumper, that's not the way to help someone. On-topic: It means you need to add the resource to acl.xml group "Admin" to give him rights to use the function "addAccount"
  5. What doesn't work? because with your s** english i can't understand anything.
  6. Castillo

    Scripter.

    I'm not crazy, i'm realistic, if you think you can find any GOOD scripter to script for FREE you are kinda mad
  7. Castillo

    [Help]BuyHay

    you can add an extra command like this, addCommandHandler("buyhay", function (player) triggerEvent("buyHay",player) end)
  8. Castillo

    [Help]BuyHay

    use "EDIT" button addEvent("buyHay", true) addEventHandler("buyHay", getRootElement(), function() local playerCash = loadPlayerData (source,"cash") if (tonumber(playerCash) > 19999) then savePlayerData (source,"cash",loadPlayerData(source,"cash") -20000) x,y,z = getElementPosition( source ) createObject ( 3374, x, y, z, 120, 0, 0 ) outputChatBox("Hay Successfully droped", source, 255, 255, 0, true) else outputChatBox("Not enough money.", source, 255, 0, 0, true) end end ) try that.
  9. Castillo

    [Help]BuyHay

    which doesn't work?
  10. Castillo

    [Help]BuyHay

    try this, addEvent("buyHay", true) addEventHandler("buyHay", getRootElement(), function() playerCash = getPlayerMoney(source) if (tonumber(playerCash) > 19999) then savePlayerData (source,"cash",loadPlayerData(source,"cash") -20000) x,y,z = getElementPosition( source ) createObject ( 3374, x, y, z, 120, 0, 0 ) outputChatBox("Hay Successfully droped", source, 255, 255, 0, true) else outputChatBox("Not enough money.", source, 255, 0, 0, true) end end ) Edit: O_o too late
  11. do you have the DFF files at meta.xml? Btw: you are using same function name O_o, why don't you put all in one?
  12. OMG! ur seriusly? finally!
  13. vehicle = createVehicle ( 496, 2425, -55, 27, 0, 0, 0 ) setElementData(vehicle,"vehicle","car") setElementData(vehicle, "owner", "Jumper_Mych") function enterVehicle ( player, seat, jacked ) if (getElementData(source, "vehicle" ) == "car") and ( getElementData(source, "owner" ) ~= getPlayerName(player) ) then outputChatBox ( "Vehicle owner: Jumper_Mych", player ) cancelEvent() end end addEventHandler ( "onVehicleStartEnter", getRootElement(), enterVehicle ) you only had to remove "not" and change "==" to "~="
  14. i use getPedOccupiedVehicle.
  15. what are you trying to do? i would recommend doing something like this: vehicle = createVehicle ( 496, 2425, -55, 27, 0, 0, 0 ) setElementData(vehicle,"vehicle","car") setElementData(vehicle, "owner", "Jumper_Mych") function enterVehicle ( player, seat, jacked ) if (getElementData(source, "vehicle" ) == "car") and ( not getElementData(source, "owner" ) == getPlayerName(player) ) then outputChatBox ( "Vehicle owner: Jumper_Mych", player ) cancelEvent() end end addEventHandler ( "onVehicleStartEnter", getRootElement(), enterVehicle )
  16. Castillo

    Fr Gui?

    Scripting, Scripting, Scripting , set a timer when he leaves the car and if enter back kill it.
  17. I suposed you wanted that too you can add a 3D sound around the vehicle. https://wiki.multitheftauto.com/wiki/PlaySound3D
  18. Castillo

    Fr Gui?

    wot? nono, you can respawn a vehicle when it explodes
  19. , put the MAP you download into "resources" folder.
  20. Castillo

    Fr Gui?

    You must script this https://wiki.multitheftauto.com/wiki/RespawnVehicle P.S: There is an example, may work
  21. Just put the map in resources directory
  22. Castillo

    Fr Gui?

    just stop "freeroam" resource
  23. check your PM box, i sent you the code.
  24. oh, you was asking for when kill a player not a zombie o_o, use volk-rus code then.
×
×
  • Create New...