Jump to content

LilDawage

Members
  • Posts

    93
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by LilDawage

  1. function some() for i, TEAMS in ipairs ( getElementsByType("team") ) do setTeamFriendlyFire (TEAMS,false ) elseif getPlayersInTeam ( getTeamFromName ( "name team 1 " ) or ( "name team 2" )or ( "name team 3" ) ) setTeamFriendlyFire (v,true ) end end addEventHandler("onResourceStart", resourceRoot,some)
  2. guiCreateStaticImage ( x,y,w,h , "image.png",false, F1 panel) or dxDrawImage
  3. you do it with Team Admin function gotovh (thePlayer) local account = getAccountName ( getPlayerAccount ( thePlayer ) ) if getTeamName(getPlayerTeam(thePlayer)) == "Admin" then end setElementPosition( player, 0, 0, 3 ) -- teleport player to the centre of SA end addCommandHandler("vh", gotovh)
  4. hello Everyone : i'm here looking for someone can be owner with me for an Server RPG/CnR , old developer in many RPG servers my Role : i have Experience in RPG Servers so i can make new stuff for server , i started working with lua since 4 years ago , so dont worry about server wut you should do : You just pay the host No more if you are interested , contact me here discord > > > lil#8508 EMAIL Thank you
  5. setAlpha ( your Gui name , amount ) -------- transparent 0 to 2
  6. local x, y = guiGetScreenSize() dxDrawImage x/2 , y/2 , 0.512, 0.512, ":electric/circuitBoard.png", 0, 0, 0, tocolor(255, 255, 255, 255), false)
  7. i can help you for free , but i need to think about that
  8. local x, y = guiGetScreenSize() dxDrawImage (x-y)/2 , 512, 512, ":electric/circuitBoard.png", 0, 0, 0, tocolor(255, 255, 255, 255), false)
  9. LilDawage

    Help gui

    GUIEditor = { button = {}, window = {} } GUIEditor.window[1] = guiCreateWindow(227, 127, 571, 514, "Panel de tags Apocalipsis Mundial",true) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.button[1] = guiCreateButton(17, 73, 155, 47, "【ИλŽÎ】", false, GUIEditor.window[1]) GUIEditor.button[2] = guiCreateButton(212, 73, 155, 47, "➳SparTan➹", false, GUIEditor.window[1]) GUIEditor.button[3] = guiCreateButton(398, 73, 155, 47, "җΛҚĀTŠŨKÎҗ", false, GUIEditor.window[1]) GUIEditor.button[4] = guiCreateButton(17, 181, 155, 47, "╚>SΛÏЎAJIŇ<╝", false, GUIEditor.window[1]) GUIEditor.button[5] = guiCreateButton(212, 186, 155, 47, "Ω »GᴏᴅOғWᴀʀ« Ω", false, GUIEditor.window[1]) GUIEditor.button[6] = guiCreateButton(398, 186, 155, 47, "[»Aᴘᴏᴄᴀʟɪᴘꜱɪꜱ«]", false, GUIEditor.window[1]) GUIEditor.button[7] = guiCreateButton(17, 289, 155, 47, "Proximamente", false, GUIEditor.window[1]) GUIEditor.button[8] = guiCreateButton(212, 289, 155, 47, "Proximamente", false, GUIEditor.window[1]) GUIEditor.button[9] = guiCreateButton(398, 289, 155, 47, "Proximamente", false, GUIEditor.window[1]) GUIEditor.button[10] = guiCreateButton(17, 394, 155, 47, "Proximamente", false, GUIEditor.window[1]) GUIEditor.button[11] = guiCreateButton(212, 394, 155, 47, "Proximamente", false, GUIEditor.window[1]) GUIEditor.button[12] = guiCreateButton(398, 394, 155, 47, "Proximamente", false, GUIEditor.window[1]) GUIEditor.button[13] = guiCreateButton(50, 136, 91, 24, "Probar", false, GUIEditor.window[1]) GUIEditor.button[14] = guiCreateButton(241, 136, 91, 24, "Probar", false, GUIEditor.window[1]) GUIEditor.button[15] = guiCreateButton(424, 136, 91, 24, "Probar", false, GUIEditor.window[1]) GUIEditor.button[16] = guiCreateButton(50, 248, 91, 24, "Probar", false, GUIEditor.window[1]) GUIEditor.button[17] = guiCreateButton(50, 351, 91, 24, "Probar", false, GUIEditor.window[1]) GUIEditor.button[18] = guiCreateButton(244, 250, 91, 24, "Probar", false, GUIEditor.window[1]) GUIEditor.label[1] = guiCreateLabel(50, 50, 92, 13, "$500,000", false, GUIEditor.window[1]) GUIEditor.label[2] = guiCreateLabel(240, 47, 92, 13, "$600,000", false, GUIEditor.window[1]) GUIEditor.label[3] = guiCreateLabel(438, 47, 92, 13, "$500,000", false, GUIEditor.window[1]) GUIEditor.label[4] = guiCreateLabel(50, 163, 92, 13, "$600,000", false, GUIEditor.window[1]) GUIEditor.label[5] = guiCreateLabel(244, 168, 92, 13, "$500,000", false, GUIEditor.window[1]) GUIEditor.label[6] = guiCreateLabel(429, 166, 92, 13, "$200,000", false, GUIEditor.window[1]) guiSetVisible( GUIEditor.window[1], false ) function guiToggleVisible ( ) if ( guiGetVisible ( GUIEditor.window[1] ) == true ) then guiSetVisible ( GUIEditor.window[1], false ) else guiSetVisible ( GUIEditor.window[1], true ) showCursor(GUIEditor.window[1], true) end end addCommandHandler ( "tags", guiToggleVisible ) function NAZI(source,accountName ) local money = getPlayerMoney(source) if accountName then if (money > 500000) then outputChatBox("Has adquirido este tag", source, 255, 0, 0) aclGroupAddObject (aclGetGroup("Nazi"), "user."..accountName) aclGroupRemoveObject (aclGetGroup("Akatsuki"), "user."..accountName) aclGroupRemoveObject (aclGetGroup("Quinx"), "user."..accountName) aclGroupRemoveObject (aclGetGroup("GodOfWar"), "user."..accountName) aclGroupRemoveObject (aclGetGroup("Spartan"), "user."..accountName) aclGroupRemoveObject (aclGetGroup("Saiyayin"), "user."..accountName) aclGroupRemoveObject (aclGetGroup("APC"), "user."..accountName) else outputChatBox("No tienes suficiente dinero", source, 255, 0, 0) end end end addEventHandler ( "onClientGUIClick", GUIEditor.button[1], NAZI ) function SPARTAN(source,accountName ) local money = getPlayerMoney(source) if accountName then if (money > 600000) then outputChatBox("Has adquirido este tag", source, 255, 0, 0) aclGroupAddObject (aclGetGroup("Spartan"), "user."..accountName) aclGroupRemoveObject (aclGetGroup("Akatsuki"), "user."..accountName) aclGroupRemoveObject (aclGetGroup("Quinx"), "user."..accountName) aclGroupRemoveObject (aclGetGroup("GodOfWar"), "user."..accountName) aclGroupRemoveObject (aclGetGroup("Nazi"), "user."..accountName) aclGroupRemoveObject (aclGetGroup("Saiyayin"), "user."..accountName) aclGroupRemoveObject (aclGetGroup("APC"), "user."..accountName) else outputChatBox("No tienes suficiente dinero", source, 255, 0, 0) end end end addEventHandler ( "onClientGUIClick", GUIEditor.button[2], SPARTAN ) function AKATSUKI(source,accountName ) local money = getPlayerMoney(source) if accountName then if (money > 500000) then outputChatBox("Has adquirido este tag", source, 255, 0, 0) aclGroupAddObject (aclGetGroup("Akatsuki"), "user."..accountName) aclGroupRemoveObject (aclGetGroup("Spartan"), "user."..accountName) aclGroupRemoveObject (aclGetGroup("Quinx"), "user."..accountName) aclGroupRemoveObject (aclGetGroup("GodOfWar"), "user."..accountName) aclGroupRemoveObject (aclGetGroup("Nazi"), "user."..accountName) aclGroupRemoveObject (aclGetGroup("Saiyayin"), "user."..accountName) aclGroupRemoveObject (aclGetGroup("APC"), "user."..accountName) else outputChatBox("No tienes suficiente dinero", source, 255, 0, 0) end end end addEventHandler ( "onClientGUIClick", GUIEditor.button[3], AKATSUKI ) function SAIYAYIN(source,accountName ) local money = getPlayerMoney(source) if accountName then if (money > 600000) then outputChatBox("Has adquirido este tag", source, 255, 0, 0) aclGroupAddObject (aclGetGroup("Saiyayin"), "user."..accountName) aclGroupRemoveObject (aclGetGroup("Spartan"), "user."..accountName) aclGroupRemoveObject (aclGetGroup("Quinx"), "user."..accountName) aclGroupRemoveObject (aclGetGroup("GodOfWar"), "user."..accountName) aclGroupRemoveObject (aclGetGroup("Nazi"), "user."..accountName) aclGroupRemoveObject (aclGetGroup("Akatsuki"), "user."..accountName) aclGroupRemoveObject (aclGetGroup("APC"), "user."..accountName) else outputChatBox("No tienes suficiente dinero", source, 255, 0, 0) end end end addEventHandler ( "onClientGUIClick", GUIEditor.button[4], SAIYAYIN ) function WAR(source,accountName ) local money = getPlayerMoney(source) if accountName then if (money > 500000) then outputChatBox("Has adquirido este tag", source, 255, 0, 0) aclGroupAddObject (aclGetGroup("GodOfWar"), "user."..accountName) aclGroupRemoveObject (aclGetGroup("Spartan"), "user."..accountName) aclGroupRemoveObject (aclGetGroup("Quinx"), "user."..accountName) aclGroupRemoveObject (aclGetGroup("Saiyayin"), "user."..accountName) aclGroupRemoveObject (aclGetGroup("Nazi"), "user."..accountName) aclGroupRemoveObject (aclGetGroup("Akatsuki"), "user."..accountName) aclGroupRemoveObject (aclGetGroup("APC"), "user."..accountName) else outputChatBox("No tienes suficiente dinero", source, 255, 0, 0) end end end addEventHandler ( "onClientGUIClick", GUIEditor.button[5], WAR ) function APC(source,accountName ) local money = getPlayerMoney(source) if accountName then if (money > 200000) then outputChatBox("Has adquirido este tag", source, 255, 0, 0) aclGroupAddObject (aclGetGroup("APC"), "user."..accountName) aclGroupRemoveObject (aclGetGroup("Spartan"), "user."..accountName) aclGroupRemoveObject (aclGetGroup("Quinx"), "user."..accountName) aclGroupRemoveObject (aclGetGroup("Saiyayin"), "user."..accountName) aclGroupRemoveObject (aclGetGroup("Nazi"), "user."..accountName) aclGroupRemoveObject (aclGetGroup("Akatsuki"), "user."..accountName) aclGroupRemoveObject (aclGetGroup("GodOfWar"), "user."..accountName) else outputChatBox("No tienes suficiente dinero", source, 255, 0, 0) end end end addEventHandler ( "onClientGUIClick", GUIEditor.button[6], APC ) function probar1(source) outputChatBox("#101010【#660099ŇλŽĬ#101010】", source, 255, 0, 0) end addEventHandler ( "onClientGUIClick", GUIEditor.button[13], probar1 ) --------- function probar2(source) outputChatBox("#FFCC00➳#222222SᴘᴀʀTᴀɴ#FFCC00➹", source, 255, 0, 0) end addEventHandler ( "onClientGUIClick", GUIEditor.button[14], probar2 ) -------- function probar3(source) outputChatBox("#ff0000җ»#303030ΛҚĀTŠŬKÎ#ff0000«җ", source, 255, 0, 0) end addEventHandler ( "onClientGUIClick", GUIEditor.button[15], probar3 ) ---------- function probar4(source) outputChatBox("#00ffff╚>#ffff00SΛÏЎAJIŇ#00ffff<╝", source, 255, 0, 0) end addEventHandler ( "onClientGUIClick", GUIEditor.button[16], probar4 ) --------- function probar5(source) outputChatBox("#550000Ω »#ffffffGᴏᴅOғWᴀʀ#550000« Ω", source, 255, 0, 0) end addEventHandler ( "onClientGUIClick", GUIEditor.button[18], probar5 ) ----------- function probar6(source) outputChatBox("#000000》»#00FFFFAᴘᴏᴄᴀ#00FF99ʟɪᴘꜱɪꜱ#000000«《", source, 255, 0, 0) end addEventHandler ( "onClientGUIClick", GUIEditor.button[19], probar6 ) Try Now
  10. yeh all functions all available on mta sa , the Basic system Not changed on mta sa , you can create your own SQLITE save system with any way you want to do as you can do : executeSQLDropTable executeSQLQuery executeSQLCreateTable executeSQLUpdate as you see there is many ways to create /Update /load your SQLITE system , it based for creating The Columns > name > value >>>>>>>>>>>>>>> CREATE TABLE IF NOT EXISTS accountdata ( Username VARCHAR(100), Money INT, Armour INT, Health INT) , create table inside it we found The Name of account and the value of Money Health and armour for that account the same for Position for player , and Groups ... and more
  11. Sqlite is available on MTA:SA. , you can save all data of players groups skins /health /armour /cars /and groups name /dates ....................... Sqlite system can be connected in local host , but SQL system you need a host to connect it if you want more info , explian us wut do you want know exectly thank you
  12. idk that there is a way to make Mods names on Meta automatic , you need to write them all
  13. as i said above and you need tow side client and server setTimer for Unfreeze players as Zorgman said make it with countdown better
  14. set Distance Visibilty for blips like local blip = create Blip ( x,y,z,.....) setBlipVisibleDistance(blip, 800) ------------------so they can stop moving on radar
  15. try to use createStaticImage (here put the size and the Cordi...lile ( 80,20,25,25) ," Name of image .png" ) --------------------------------then the Image will be showing in your Window
  16. LilDawage

    blips

    blip = createBlipAttachedTo(marker, 63) ---------------here Put the size like >>>>> blip = createBlipAttachedTo(marker,[ 63,2])------ 2 = size
  17. LilDawage

    blips

    go to your resource >>>>> Burger or restaurant and Feul system and Gym and modshop ......... and Fix the size of Blips
  18. function noob ( player) if getLocalPlayer ( ) then local sound = playSound("chat.mp3") end end addCommandHandler ( "all", noob )
  19. weapons = {} weapons[16] = true -------------Grenads weapons[39] = true ------------- setchals addEventHandler("onPlayerDamage", getRootElement(), function (attacker, weapon, bodypart, loss) if weapons[weapon] then setElementFrozen ( source ) end end )
  20. function getPlayerTag ( player ) local tag = "" if getTeamName(getPlayerTeam(player)) == "Staff" then -------------------------------idk your team staff name : Admins or Staff just change it tag = tag.."[IGT]" end return tag end
×
×
  • Create New...