-
Posts
240 -
Joined
-
Last visited
Everything posted by mr.Extreme
-
no there error takeWeapon work but createpickup no created
-
hello i made drop weapon but no work here my code server: function dropweapon(player) local x,y,z = getElementPosition(player) local weapon = getPedWeapon(player) local ammo = getPedTotalAmmo(player) takeWeapon(player, weapon, ammo) createPickup(x+4, y, z+1, weapon, 5000, ammo) end addCommandHandler("drop", dropweapon)
-
thx you very much and For all
-
oh thx you ok i want make when player mute cant he use command only allowed ./report
-
hello how i can remove command login I looked at the folder and did not find cmd login to remove it and thx for help
-
IIYAMA thx you very much its working
-
hello i have problem when kill other team or not team i no get money here my code server: function setMoneyOnWasted ( ) givePlayerMoney ( source, -100 ) end addEventHandler ( "onPlayerWasted", getRootElement(), setMoneyOnWasted ) function onPlayerLogout ( ) setPlayerMoney ( source, 0 ) end addEventHandler ( "onPlayerLogout", getRootElement(), onPlayerLogout ) addEventHandler('onPlayerWasted',root,function(_,killer) if killer and killer ~= source and getElementType(killer) == 'player' then if getTeamName(getPlayerTeam(killer)) == getTeamName(getPlayerTeam(source)) then givePlayerMoney(killer,getPlayerMoney(killer) 0) end if getTeamName(getPlayerTeam(killer)) ~= getTeamName(getPlayerTeam(source)) then givePlayerMoney(killer,1000) end end end ) and thx for help.
-
شكرا لك & اسف علي رد تاخير!
-
ما زبط function bloqeo ( player, seat, jacked ) local zk = getElementData(player,"level") if ( seat == 0 ) and ( zk < 10 ) then local vehicleID = getElementModel(player) if vehicleID == 411 then outputChatBox ("[sERVER]:You need be level 10 to enter in this vehicle", player, 255, 100, 100, false) cancelEvent() end end end addEventHandler ( "onVehicleStartEnter", getRootElement(), bloqeo )
-
اسلام عليكم انا بدي احط الاي دي للسيارة كيف ؟ علشان بدي احط لكل سيارة لفل . server: function bloqeo ( player, seat, jacked ) zk = getElementData(localPlayer,"Zombie kills") if ( seat == 0 ) and ( zk < 3 ) then outputChatBox ("[sERVER]:You need be level 2 to enter in this vehicle", player, 255, 100, 100, false) cancelEvent() end end addEventHandler ( "onVehicleStartEnter", getRootElement(), bloqeo )
-
object = createObject(980, 3283.3999023438, 261.10000610352, 14.10000038147) marker = createMarker(3284, 261.29998779297, 1, "cylinder", 2, 100, 0, 0, 100) function gateo(thePlayer) if (getTeamName(getPlayerTeam(thePlayer)) == "Team") then moveObject(object, 2500, 3283.3999023438, 261.10000610352, 14.10000038147, 5) end end addEventHandler("onMarkerHit",marker,gateo) function gatec(thePlayer) if (getTeamName(getPlayerTeam(thePlayer)) == "Team") then moveObject(object,3283.3999023438, 261.10000610352, 14.10000038147) end end addEventHandler("onMarkerLeave",marker,gatec)
-
nice and thx you very much
-
no work no there icon in scoreborad.
-
hello i have problem no show icons on scoreborad only show text "":levelsystem\\icons\\private.png" client: function ranks() local localPlayer = getLocalPlayer() local rankico = getElementData(localPlayer, "Rankicon") if rankico then setElementData(localPlayer, "Rank",":levelsystem\\icons\\"..rankico..".png") else setElementData(localPlayer, "Rank",":levelsystem\\icons\\private.png") end end setTimer(ranks, 500, 0) and thx for help
-
لا خلص لقيتة شكرا للجميع
-
لا مو هذا انا بدي level ألي في صورة
-
انا بحثت ونزلت كل المودات لفل للاسف مالقيتة ألي بعرف اسم هذا المود يريت تقلولي
-
use addEventHandler("onClientResourceStart",resourceRoot, function() fileDelete("client.lua") end)
-
please help .
-
hello i want when player login load level and zombie kills serverside: function deanimated( ammo, attacker, weapon, bodypart ) if (attacker) then if (getElementType ( attacker ) == "player") and (getElementType ( source ) == "ped") then if (getElementData (source, "zombie") == true) then local isExp = getAccountData(getPlayerAccount(attacker),"zombies.kills") local expr = false if isExp then expr = tonumber(isExp) + 1 else expr = 1 end triggerClientEvent ( attacker, "expOnChange", getRootElement(), expr, 1) givePlayerMoney(attacker,tonumber(get("zombiegamemode.Reward"))+math.random(-100,100)) setPedOnFire(source,false) setPedHeadless(source,false) local attacker2 = getPlayerAccount(attacker) local oldZcount = getAccountData(attacker2,"zombies.kills") if oldZcount ~= false then setAccountData ( attacker2, "zombies.kills", oldZcount+1 ) setElementData( attacker, "Zombie kills", oldZcount+1 ) setPlayerAnnounceValue(attacker,"score",tostring(oldZcount+1)) triggerEvent ( "onZombieWasted", source, attacker, weapon, bodypart ) else setAccountData ( attacker2, "zombies.kills", 1 ) setPlayerAnnounceValue(attacker,"score","1") setElementData( attacker, "Zombie kills", 1 ) triggerEvent ( "onZombieWasted", source, attacker, weapon, bodypart ) end end end end end addEventHandler("onPedWasted", resourceRoot, deanimated)