Jump to content

iMr.3a[Z]eF

Members
  • Posts

    862
  • Joined

  • Last visited

Everything posted by iMr.3a[Z]eF

  1. iMr.3a[Z]eF

    Problem !!

    Hello, i don't know it's the right section but, i got i problem while i download the MTA and connected to my local server it shows me a message and kick me out. Here is the pic.
  2. You mean only who is in the team allow to write this command?
  3. What do you mean?
  4. No, like this: addEventHandler( "onClientPlayerWeaponFire", localPlayer, function ( ) local weapon = getPedWeapon(localPlayer) if weapon == 38 then cancelEvent() outputChatBox("* No't allowed to kill people by minigun", localPlayer, 255, 0, 0) end end )
  5. Why not using destroyElement for blip?
  6. Where is your codes?
  7. Five events in one function, is that possible?
  8. take a picture about the file now.
  9. So, try mine i hope it'll works. function createbTeam() bTeam = createTeam("Bodyguard", 255, 255, 255) end addEventHandler ("onResourceStart", resourceRoot, createbTeam) setTimer( function payday() local playersb = getPlayersInTeam(bTeam) money = math.random ( 10000, 25000 ) givePlayerMoney(playersb, money) end, 1200000, 0)
  10. What is this code?, Also what is "mon" in your code?
  11. How long you want to give, i mean every 5 hours or? function createbTeam() bTeam = createTeam("Bodyguard", 255, 255, 255) end addEventHandler ("onResourceStart", resourceRoot, createbTeam) setTimer( function payday() local playersb = getPlayersInTeam(bTeam) money = math.random ( 10000, 25000 ) givePlayerMoney(playersb, money) end, 1200000, 0)
  12. try: function zamknijPojazd ( ) local pojazd = getElementData ( source, "vehicle_owner" ) local acc = getPlayerAccount ( source ) if (not acc or isGuestAccount ( acc )) then return end local accName = getAccountName ( acc ) if pojazd then if ( getAccountData ( pojazd, "veh_owner" ) == accName ) then -- vehicle owner if isVehicleLocked ( pojazd ) == true then local pojazd = getElementData ( source, "vehicle_owner" ) -- vehicle ( not owner, just vehicle ) outputChatBox ( "[iNFO] Pojazd " .. pojazd .. " został otwarty !", source, 255, 255, 0, true ) setVehicleLocked ( pojazd, false ) else local pojazd = getElementData ( source, "vehicle_owner" ) outputChatBox ( "[iNFO] Pojazd " .. pojazd .. " został zamknięty !", source, 255, 255, 0, true ) setVehicleLocked ( pojazd, true ) end end else pojazd = nil end end
  13. iMr.3a[Z]eF

    Statistics

    Check if the freeroam is stoped: GUIEditor = { tab = {}, window = {}, tabpanel = {}, label = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(555, 297, 565, 436, "Panel Hráča", false) guiWindowSetMovable(GUIEditor.window[1], false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.tabpanel[1] = guiCreateTabPanel(9, 25, 546, 401, false, GUIEditor.window[1]) GUIEditor.tab[1] = guiCreateTab("Štatistiky", GUIEditor.tabpanel[1]) GUIEditor.label[1] = guiCreateLabel(83, 41, 190, 18, "Typ", false, GUIEditor.tab[1]) guiSetFont(GUIEditor.label[1], "default-bold-small") guiLabelSetColor(GUIEditor.label[1], 0, 126, 254) GUIEditor.label[2] = guiCreateLabel(273, 41, 190, 18, "Hodnota", false, GUIEditor.tab[1]) guiSetFont(GUIEditor.label[2], "default-bold-small") guiLabelSetColor(GUIEditor.label[2], 0, 126, 254) GUIEditor.label[3] = guiCreateLabel(83, 153, 190, 18, "Výrhy", false, GUIEditor.tab[1]) GUIEditor.label[4] = guiCreateLabel(83, 125, 190, 18, "Úmrtia", false, GUIEditor.tab[1]) GUIEditor.label[5] = guiCreateLabel(83, 97, 190, 18, "Peniaze", false, GUIEditor.tab[1]) GUIEditor.label[6] = guiCreateLabel(83, 69, 190, 18, "Body", false, GUIEditor.tab[1]) GUIEditor.label[7] = guiCreateLabel(273, 125, 190, 18, "", false, GUIEditor.tab[1]) GUIEditor.label[8] = guiCreateLabel(273, 97, 190, 18, "", false, GUIEditor.tab[1]) GUIEditor.label[9] = guiCreateLabel(273, 69, 190, 18, "", false, GUIEditor.tab[1]) GUIEditor.label[10] = guiCreateLabel(273, 153, 190, 18, "", false, GUIEditor.tab[1]) GUIEditor.label[11] = guiCreateLabel(246, 283, 267, 19, "www.webstranka.tk", false, GUIEditor.tab[1]) guiSetFont(GUIEditor.label[11], "default-bold-small") GUIEditor.label[12] = guiCreateLabel(83, 181, 190, 18, "Nahraný Čas", false, GUIEditor.tab[1]) GUIEditor.label[13] = guiCreateLabel(273, 181, 190, 18, "", false, GUIEditor.tab[1]) end ) addEventHandler("onClientResourceStart", resourceRoot, function() local playermoney = getPlayerMoney ( source ) local playerpoints = getElementData(source,"Points") local playertime = getElementData(source,"Playtime") local playerwins = getElementData(source,"Wins") local playerdeaths = getElementData(source,"Deaths") guiSetText (GUIEditor.label[9], "" .. playerpoints .. "") guiSetText (GUIEditor.label[8], "" .. playermoney .. "") guiSetText (GUIEditor.label[7], "" .. playerdeaths .. "") guiSetText (GUIEditor.label[10], "" .. playerwins .. "") guiSetText (GUIEditor.label[13], "" .. playertime .. "") end ) addEventHandler("onClientRender", root, function() dxDrawLine(628, 408, 925, 408, tocolor(255, 255, 255, 255), 1, true) dxDrawLine(628, 493, 925, 493, tocolor(255, 255, 255, 255), 1, true) dxDrawLine(628, 465, 925, 465, tocolor(255, 255, 255, 255), 1, true) dxDrawLine(628, 438, 925, 438, tocolor(255, 255, 255, 255), 1, true) dxDrawLine(762, 383, 762, 553, tocolor(255, 255, 255, 255), 1, true) dxDrawLine(628, 523, 925, 523, tocolor(255, 255, 255, 255), 1, true) end ) function guiToggleVisible ( ) guiSetVisible ( GUIEditor.window[1], not guiGetVisible ( GUIEditor.window[1] ) ); showCursor ( guiGetVisible ( GUIEditor.window[1] ) ); end bindKey ( "f1", "down", guiToggleVisible )
  14. Use the function below: "onClientMarkerHit" -- an event getElementType guiSetVisible
  15. iMr.3a[Z]eF

    Blip

    Any errors?
  16. Is "M4" a gun?
  17. No, you can't but you can replace them.
  18. iMr.3a[Z]eF

    tELEPORT

    Inside the station?
  19. iMr.3a[Z]eF

    tELEPORT

    Here you are, change the interior to whatever you wanted: local teleportmaker = createMarker(-3480.7614746094, 826.58349609375, 113.88046264648, 'cylinder', 2.0, 25, 1, 1, 90) function teleport( markerHit ) if getElementType(markerHit) == "player" then playername = getPlayerName(markerHit) outputChatBox( playername.." has teleported", getRootElement(), 255, 255, 0 ) setElementPosition ( markerHit, 239.24244689941, 141.27333068848, 1003.0234375) setElementInterior ( markerHit, 1 ) end end addEventHandler( "onMarkerHit", getRootElement(), teleport )
  20. setElementData?, he have just to use setElementPosition for z coordinate.
  21. You are very welcome.
  22. What points are you talking about?
  23. GUIEditor = { window = {}, staticimage = {} tabpanel = {}, button = {} } my_window = guiCreateWindow(0, 0, 1, 1, true) guiWindowSetSizable(my_window , false) guiSetVisible ( my_window , false ) guiSetAlpha(my_window , 10) my_image = guiCreateStaticImage(0.14, 0.09, 0.71, 0.79, "images/pda.png", true, my_window ) tabpanel = guiCreateTabPanel(107, 84, 770, 543, false, my_image ) closed = guiCreateButton(0.89, 0.27, 0.03, 0.13, "", true, my_image ) guiSetAlpha(closed, 0.15) guiSetProperty(closed, "NormalTextColour", "FFAAAAAA") function open() guiSetVisible ( my_window, not guiGetVisible ( my_window ) ); showCursor ( guiGetVisible ( my_window ) ); end bindKey ( "i", "down", open )
  24. What did you edited, also the source is defined difficult by MTA.
  25. Maybe because he didn't knew the rules.
×
×
  • Create New...