Jump to content

Electro88

Members
  • Posts

    88
  • Joined

  • Last visited

1 Follower

About Electro88

  • Birthday 29/04/1999

Details

  • Location
    BanBanÇiki

Recent Profile Visitors

1,007 profile views

Electro88's Achievements

Transformer

Transformer (11/54)

6

Reputation

  1. local spawns = { { -2030.1610107422, 172.25221252441, 28.8359375, 90.0 }, { 423.2495, 453.2564, 564.6321, 120.6928 } } local rnd = math.random( #spawns ) spawnPlayer( player, spawns[rnd][1], spawns[rnd][2], spawns[rnd][3], spawns[rnd][4])
  2. Code is working thanks and @Ahmed Ly
  3. Yes. I'm bad at script sorry
  4. Hi all, I have a problem with team setspawn. It's not working. What I did wrong in this code ? function teamspawnset ( player, theCurrentAccount ) local x, y, z = getElementPosition(player ) local dim = getElementDimension( player ) local int = getElementInterior( player ) local color = getTeamColor( player) local gang = getPlayerTeam(player) local teamName = getTeamName ( gang ) account = getPlayerAccount (source) if (account) then setAccountData (account, "x, y, z", gang) elseif ( teamName == getTeamName ) then spawnPlayer (player, x, y, z ) outputChatBox ( "Succes!", source, 0, 255, 0, true ) else outputChatBox ( ":(", source, 255, 0, 0, true ) end end addCommandHandler ("setspawn", teamspawnset, player ) addEventHandler ( "onPlayerWasted", root, function() setTimer(teamspawnset, 5000, 1, source) end)
  5. GUIEditor = { button = {}, window = {}, staticimage = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[99] = guiCreateWindow(0, 0, 800, 600, "", false) guiWindowSetSizable(GUIEditor.window[99], false) guiSetVisible(GUIEditor.window[99], false) GUIEditor.button[1] = guiCreateButton(650, 25, 54, 36, "Kapat/Close", false, GUIEditor.window[99]) GUIEditor.button[2] = guiCreateButton(0.2550, 25, 54, 36, "<<", false, GUIEditor.window[99]) GUIEditor.button[3] = guiCreateButton(85, 25, 54, 36, ">>", false, GUIEditor.window[99]) GUIEditor.button[4] = guiCreateButton(0, 50, 69, 36, "Haberler Ve Hotmail", false, GUIEditor.window[99]) GUIEditor.staticimage[1] = guiCreateStaticImage(102, 72, 73, 69, "Images/2.png", false, GUIEditor.window[99]) guiCreateMemo(150,25,325,35,"https://www.Kardeş_Anamenu-page-01.com",false, GUIEditor.window[99]) end ) local browser = guiCreateBrowser(85, 25, 800, 600, false, false, false) addEventHandler ("onClientGUIClick", getRootElement(), function(button, state, absoluteX, absoluteY) if ( source == GUIEditor.button[1] ) then guiSetVisible ( GUIEditor.window[99] , false) showCursor ( false ) elseif ( source == GUIEditor.button[4] ) then injectBrowserMouseDown(browser, button) loadBrowserURL(browser, "www.mtasa.com") end end) bindKey("F1","down", function() if guiGetVisible(GUIEditor.window[99]) == true then guiSetVisible( GUIEditor.window[99], false) showCursor(false) elseif guiGetVisible(GUIEditor.window[99]) == false then guiSetVisible(GUIEditor.window[99], true) showCursor(true) end end)
  6. hello i need help for loadBrowser i click button not see anything please help local browser = guiCreateBrowser(85, 25, 800, 600, false, false, false) addEventHandler ("onClientGUIClick", getRootElement(), function(button, state, absoluteX, absoluteY) if ( source == GUIEditor.button[1] ) then guiSetVisible ( GUIEditor.window[99] , false) showCursor ( false ) elseif ( source == GUIEditor.button[4] ) then loadBrowserURL(browser, "www.mtasa.com")
  7. Electro88

    BindKey

    Thanks Worked! <3
  8. Electro88

    BindKey

    Not change anything and why random player please anyone help me ?
  9. Electro88

    BindKey

    Bind key why not working Server: function gui (player ) local accName = getAccountName ( getPlayerAccount ( player ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Console" ) ) then triggerClientEvent (player,"pop",player) end end bindKey("F2","down", gui) function bindTab(localPlayer ) bindKey(localPlayer, "F2","down", gui) end Client: function popa ( player ) guiSetVisible(Wnd,true) showCursor(true) end addEvent("pop",true) addEventHandler("pop", getRootElement(), popa )
  10. Electro88

    Command

    Hello i have small problem sorry for open post i try it for fix but not fix the code. İ try it for soldiers not kill themselves addEventHandler("onPlayerCommand", root, function(cmd,player) local accName = getAccountName ( getPlayerAccount ( player ) ) if cmd == "kill" then if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Soldier" ) ) then outputChatBox("Askerler İntihar etmez!! ", source, 255, 0, 0) cancelEvent() end end
  11. @Sha67 Working ! Thank you so much everybody for help
×
×
  • Create New...