0 Üye ve 1 Ziyaretçi konuyu incelemekte.
addEvent("sniperTakeDecision", true)addCommandHandler("botgoy", function(thePlayer, command) local x, y, z = getElementPosition(thePlayer) local int = getElementInterior(thePlayer) local ped = createSniperPed(x, y, z) setElementInterior(ped, int) end)setTimer( function() for i, peds in ipairs(getElementsByType("ped")) do if getElementData(peds, "type") == "ped.sniper.npc" and getElementHealth(peds) > 0 then setPedWeaponSlot(peds, 6) giveWeapon(peds, 30, 10000, true) end end end, 50, 0)function createSniperPed(x, y, z) local ped = createPed(254, x, y, z) setTimer( function() if isElement(ped) then giveWeapon(ped, 30, 10000, true) setPedWeaponSlot(ped, 6) setElementData(ped, "type", "ped.sniper.npc") setElementFrozen(ped, true) end end , 5000, 1) return pedendaddEventHandler("sniperTakeDecision", getRootElement(), function(sniperPedID, aimPlayer) setElementData(sniperPedID, "target", aimPlayer) triggerClientEvent("sniperTakeDecisionClient", getRootElement(), sniperPedID, aimPlayer) end)
addCommandHandler("botgoy", function(thePlayer, command) local accName = getAccountName ( getPlayerAccount ( source ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then local x, y, z = getElementPosition(thePlayer) local int = getElementInterior(thePlayer) local ped = createSniperPed(x, y, z) setElementInterior(ped, int) else outputChatBox("Bu komutu sadece adminler kullanabilir.", thePlayer, 255, 0, 0) end end)setTimer( function() for i, peds in ipairs(getElementsByType("ped")) do if getElementData(peds, "type") == "ped.sniper.npc" and getElementHealth(peds) > 0 then setPedWeaponSlot(peds, 6) giveWeapon(peds, 30, 10000, true) end end end, 50, 0)function createSniperPed(x, y, z) local ped = createPed(254, x, y, z) setTimer( function() if isElement(ped) then giveWeapon(ped, 30, 10000, true) setPedWeaponSlot(ped, 6) setElementData(ped, "type", "ped.sniper.npc") setElementFrozen(ped, true) end end , 5000, 1) return pedendaddEventHandler("sniperTakeDecision", getRootElement(), function(sniperPedID, aimPlayer) setElementData(sniperPedID, "target", aimPlayer) triggerClientEvent("sniperTakeDecisionClient", getRootElement(), sniperPedID, aimPlayer) end)
addEvent("sniperTakeDecision", true)addCommandHandler("botgoy", function(thePlayer, command) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then local x, y, z = getElementPosition(thePlayer) local int = getElementInterior(thePlayer) local ped = createSniperPed(x, y, z) setElementInterior(ped, int) else outputChatBox("Bu komutu sadece adminler kullanabilir.", thePlayer, 255, 0, 0) end end)setTimer( function() for i, peds in ipairs(getElementsByType("ped")) do if getElementData(peds, "type") == "ped.sniper.npc" and getElementHealth(peds) > 0 then setPedWeaponSlot(peds, 6) giveWeapon(peds, 30, 10000, true) end end end, 50, 0)function createSniperPed(x, y, z) local ped = createPed(254, x, y, z) setTimer( function() if isElement(ped) then giveWeapon(ped, 30, 10000, true) setPedWeaponSlot(ped, 6) setElementData(ped, "type", "ped.sniper.npc") setElementFrozen(ped, true) end end , 5000, 1) return pedendaddEventHandler("sniperTakeDecision", getRootElement(), function(sniperPedID, aimPlayer) setElementData(sniperPedID, "target", aimPlayer) triggerClientEvent("sniperTakeDecisionClient", getRootElement(), sniperPedID, aimPlayer) end)
Ben onu saten sen eksik koydun diye koymuştum yine çalışmadı..
Ya kardeşim birzat ben kendi serverimde denedim mis gibi çalışıyor sen çalışmadı yerine yapamadım yaz al indir at serverine Linki görebilmek için Kayıt olun yada Giriş yapın.
kanki sakin adamı dövücekmişsin gibi kanki cidden sakin.