Jump to content

itoko

Members
  • Content Count

    60
  • Joined

  • Last visited

Community Reputation

0 Neutral

About itoko

  • Rank
    Snitch
  • Birthday 22/07/1997

Details

  • Location
    France

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Ah yes, my bad, i didn't check the whole code at all, which is a big mistake ^^'. I guess the event should be onZombieWasted. (from what i know you're working on)
  2. function cbinds() bindKey("vehicle_fire", "down", cdoshoot) bindKey("vehicle_secondary_fire", "down", cdoshoot) bindKey("lctrl", "down", cdoshoot) bindKey("rctrl", "down", cdoshoot) allowShoots() end addEventHandler("onClientResourceStart", getRootElement(), cbinds) function cdoshoot(theVehicle) local theVehicle = getPedOccupiedVehicle(localPlayer) if bindTrigger == 1 then if not isPlayerDead(localPlayer) then bindTrigger = 0 local x,y,z = getElementPosition(theVehicle) local rX,rY,rZ = getElementRotati
  3. The conditions were kinda weird, try this: addEventHandler( "onZombieWasted", root, function ( killer, weapon, bodypart ) if killer and killer ~= source then if bodypart == 9 and weapon == 22 then setPedStat( killer, 69, getPedStat( killer, 69 ) + 1 ) elseif bodypart == 8 and weapon == 22 then setPedStat( killer, 69, getPedStat( killer, 69 ) + 0.5 ) elseif bodypart == 7 and weapon == 22 then setPedStat( killer, 69, getPedStat
  4. Try this: function WeaponLevels (player, weapon) local Weapon = guiGetText(GUIEditor.label[2]) if Weapon then local Point = tonumber(Weapon) if Point >= 100 and weapon == 22 then guiSetText (GUIEditor.label[3],"Level: 1") end end end addEventHandler( "onClientRender",getRootElement(), WeaponLevels) because you maybe haven't 100 points, but more
  5. itoko

    Auto B

    i edited it try again
  6. yes, the level of water when it's raising is using untilW, but untilW never change, so the water level doesn't change.
  7. Sorry i forgot to edit it, i changed the target of the setPlayerMoney to the source.
  8. addEvent("buyGodMode", true) addEventHandler("buyGodMode", getRootElement(), function() if ( getPlayerMoney (source) >= 70000 ) then if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Admin")) then takePlayerMoney(source, 70000) outputChatBox("Godmode Successfully activated", source, 255, 255, 0, true) setVehicleDamageProof(getPedOccupiedVehicle(source),true) setTimer( setVehicleDamageProof, 60000, 1, getPedOccupiedVehicle(source), false) else takePlayerMoney(source, 70000) outp
  9. Maybe there is something above the serverside event, that stop the addEvent, try to put the serverside event and function you showed us, in another server file (create a new one)
  10. itoko

    Auto B

    Try this: DestructionDerby = setmetatable({}, RaceMode) DestructionDerby.__index = DestructionDerby DestructionDerby:register('Destruction derby') function DestructionDerby:isApplicable() return not RaceMode.checkpointsExist() and RaceMode.getMapOption('respawn') == 'none' end function DestructionDerby:getPlayerRank(player) return #getActivePlayers() end -- Copy of old updateRank function DestructionDerby:updateRanks() for i,player in ipairs(g_Players) do if not isPlayerFinished(player) then local rank = self:getPlayerRank(player)
  11. function money() setPlayerMoney( source, 0 ) end addEventHandler("onPlayerLogout",getRootElement(),money) Well, that depend of your script that save the money, normally yes.
  12. I guess this is what you're looking for: dxSetAspectRatioAdjustmentEnabled() https://wiki.multitheftauto.com/wiki/Dx ... entEnabled
×
×
  • Create New...