Mahlukat

Members
  • Content count

    24
  • Joined

  • Last visited

Community Reputation

5 Neutral

1 Follower

About Mahlukat

  • Rank
    Civilian

Recent Profile Visitors

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

  1. Mahlukat

    Death

    try this addEventHandler("onPlayerWasted", root, function() local x,y,z = getElementPosition(source) spawnPlayer(source,x,y,z) end
  2. Mahlukat

    [Help] onClientResourceStop

    Yea, i tried but wiki said; This event is triggered when a remote player quits the game or leaves the server. It will not get triggered on the source player's client. (Use onClientResourceStop to save client side data when the local player quits.) thanks for help but it's still not triggered :((
  3. Mahlukat

    [Help] onClientResourceStop

    Hey i want to save table in client-side when localPlayer disconnected --client addEventHandler( "onClientResourceStop", resourceRoot,function() triggerServerEvent("Freeroam:SureKaydet", localPlayer, sureVerileri, true) if sureVerileri[localPlayer] and isTimer(sureVerileri[localPlayer].timer) then killTimer(sureVerileri[localPlayer].timer) end end) --server addEvent("Freeroam:SureKaydet", true) addEventHandler("Freeroam:SureKaydet", root, function(sureVerileri,bosmu) outputServerLog("triggered server") -- i can't see this message in console local hesap = getPlayerAccount(source) if not isGuestAccount(hesap) then outputServerLog("not guest") local sure = 60*10 if sureVerileri[source] and sureVerileri[source].sure then sure = sureVerileri[source].sure end exports.Hesaplar:SAD(hesap, "KiralikSure", sure) outputServerLog("saved.") outputServerLog(sure) if bosmu then exports.Hesaplar:SAD(hesap, "KiralikSureBos", true) end end end) but event isn't triggered :(( how can ido it? -
  4. Mahlukat

    Ant-Kill

    Canceling this event has no effect. Cancel the client-side event onClientPlayerDamage instead.
  5. Mahlukat

    Help in onColShapeHit

    for disable skin changing; --server-side local yourCol = createColSphere(...) addEventHandler("onElementModelChange", root, function(oldModel,newModel) if getElementType(source) == "player" then if isElementWithinColShape(source,yourCol) then setTimer(setElementModel,50,1,source,oldModel) outputChatBox("You can't change skin in this place!",source,255,0,0) end end end)
  6. Mahlukat

    Help GetPlayerSerial

    function spamEngelle(oyuncu,deger) -- spam engelleme fonksiyon if isElement (oyuncu) then -- player check local serial = getPlayerSerial(oyuncu) if deger == "Mutele" then outputChatBox(getPlayerName(oyuncu).."#CC0000 60 #FFFFFFSaniye Susturuldun. #CC0000Sebep: #FFFFFFFlood/Spam", root, 255,255,255,true) setPlayerMuted(oyuncu, true) setTimer (spamEngelle, 60000, 1, oyuncu, "Mute Kaldır") muteliler[serial] = true elseif deger == "Mute Kaldır" then if isElement (oyuncu) and isPlayerMuted (oyuncu) then setPlayerMuted ( oyuncu, false ) antiSpam[oyuncu] = nil muteliler[serial] = false outputChatBox ("#FFFFFF"..getPlayerName ( oyuncu ).." #66FF00Cezan Bitti.",root, 255, 255, 0,true ) else antiSpam[oyuncu] = nil end end end end try this
  7. Mahlukat

    [HELP] GridList

    You can hide with other gui element like this; local backLabel = guiCreateLabel(x,y,w,h, "", relative, parent) local list = guiCreateGridList(0,0,w+15,h, false, backLabel)
  8. Mahlukat

    OR logical operator problem

    -- it's too short :P local icon = getBlipIcon(blip) if icon == 32 or icon == 35 then -- or icons = { [32] = true, [35] = true, } if icons[getBlipIcon(blip)] then
  9. Mahlukat

    Remove double player blip

    if you using freeroam script, check joinHandler function in fr_server.lua
  10. Mahlukat

    Allow only numbers in editboxes (patterns)

    guiSetProperty(yourEdit, "ValidationString", "[0-9]*")
  11. Mahlukat

    help Windons

    GUIEditor = { gridlist = {}, button = {} } addEventHandler("onClientResourceStart", resourceRoot, function() mission = guiCreateWindow(596, 264, 204, 247, "Zombie Mission", false) guiSetVisible(mission,false) guiWindowSetSizable(mission, true) GUIEditor.button[1] = guiCreateButton(10, 22, 184, 15, "\"MISSIONS\"", false, mission) GUIEditor.button[2] = guiCreateButton(-1, 154, 31, 33, "", false, GUIEditor.button[1]) GUIEditor.button[3] = guiCreateButton(9, 214, 92, 18, "TAKE", false, mission) GUIEditor.button[4] = guiCreateButton(106, 214, 88, 18, "EXIT", false, mission) GUIEditor.gridlist[1] = guiCreateGridList(230, 206, 0, 15, false, mission) GUIEditor.gridlist[2] = guiCreateGridList(10, 39, 184, 168, false, mission) guiGridListAddColumn(GUIEditor.gridlist[2], "Mission", 0.9) for i = 1, 9 do guiGridListAddRow(GUIEditor.gridlist[2]) end guiGridListSetItemText(GUIEditor.gridlist[2], 0, 1, "Kill 1 boss RED", false, false) guiGridListSetItemText(GUIEditor.gridlist[2], 1, 1, "Kill 1 boss yellow", false, false) guiGridListSetItemText(GUIEditor.gridlist[2], 2, 1, "Kill 2 boss RED", false, false) guiGridListSetItemText(GUIEditor.gridlist[2], 3, 1, "Kill 2 boss yellow", false, false) guiGridListSetItemText(GUIEditor.gridlist[2], 4, 1, "Kill 3 boss RED", false, false) guiGridListSetItemText(GUIEditor.gridlist[2], 5, 1, "Kill 3 boss yellow", false, false) guiGridListSetItemText(GUIEditor.gridlist[2], 6, 1, "Kill 300 zombies", false, false) guiGridListSetItemText(GUIEditor.gridlist[2], 7, 1, "Kill 600 zombies", false, false) guiGridListSetItemText(GUIEditor.gridlist[2], 8, 1, "Kill 900 zombies", false, false) end ) bindKey ("U","down",function() guiSetVisible(mission, not guiGetVisible(mission)) showCursor(guiGetVisible(mission)) end)
  12. Mahlukat

    [Help] Spray Smoke Color

    Hello How can i change spray color like this; I've tried change color with png like this; local shader = dxCreateShader("shader.fx") local texture = dxCreateTexture("smoke.png") dxSetShaderValue(shader,"Tex0",texture) engineApplyShaderToWorldTexture(shader,"smoke") its worked without white color and i need white color too Anybody can explain me ?
  13. Mahlukat

    [HELP] get player with hex code

    maybe you can like this; guiGridListSetItemText (moneysend,row,col,(string.gsub ( getPlayerName(player), '#%x%x%x%x%x%x', '' ) or getPlayerName(player)), false, false) guiGridListSetItemData (moneysend,row,col,player) player = guiGridListGetItemData(moneysend, row, col) if isElement(player) then
  14. Mahlukat

    Tables

    can you try this ? table = {} local function take(thePlayer) for i,pickup in pairs(getElementsByType("pickup", resourceRoot)) do if isElementWithinColShape(thePlayer,table[pickup]) then local ammo = getPickupAmmo(pickup) local bron = getPickupWeapon(pickup) giveWeapon(thePlayer,bron,ammo, true) outputChatBox(getWeaponNameFromID(bron).. " | "..ammo, thePlayer) destroyElement(table[pickup]) destroyElement(pickup) end end end local function weapon_drop (thePlayer) local bron = getPlayerWeapon(thePlayer) local ammo = getPedTotalAmmo(thePlayer) local slot = getPedWeaponSlot(thePlayer) local x,y,z = getElementPosition(thePlayer) local pickup_bron = getPedWeapon(thePlayer) local p = getPedWeapon(thePlayer) if slot > 0 then if ammo > 0 then local pickup = createPickup(x,y,z,2,p,0,ammo) table[pickup] = createColSphere(x,y,z,1) takeWeapon(thePlayer,p,ammo) end end end addCommandHandler("bind_q",function(thePlayer) bindKey(thePlayer,"U","down",weapon_drop,thePlayer) bindKey(thePlayer,"I","down",take,thePlayer) end)
  15. Mahlukat

    Timer

    can u try this ? function timer(player) -- if getPlayerTeam(player)==team then print("Work") local losuj = math.random(1,3) if losuj==1 then givePlayerMoney(player,2000) elseif losuj==2 then setPedArmor(player,100) setElementHealth(player,100) elseif losuj==3 then giveWeapon(player,36,3) end --end end function allPlayers() for i,player in pairs(getElementsByType("player")) do if getPlayerTeam(player)==team then -- check timer(player) end end setTimer(allPlayers,2000,1) end allPlayers()