-
Posts
857 -
Joined
-
Last visited
Everything posted by Blaawee
-
1- Make your own login and register system Or search here: https://community.multitheftauto.com/ 2- idk
-
-- Value = positionX, positionY, positionZ, lookAtX, lookAtY, lookAtZ local cameraPos = { [ camera [1] ] = ' 1525.5999755859, 2833.5, 36.299999237061, 1524.8000488281, 2833.3999023438 , 35.299999237061 ', [ camera [2] ] = ' 1464.4000244141, 2840.8999023438, 82.400001525879, 1453.5999755859, 2833.6999511719, 74.400001525879 ', [ camera [3] ] = ' 1469.5, 2815.3000488281, 44.799999237061, 1470.0999755859, 2822.8000488281, 44.799999237061 ' --[ camera [4] ] = ' x, y, z, lookAtX, lookAtY, lookAtZ ', } local currentCamera = 0 function setCameraPos() fadeCamera(source, true, 5) setCameraMatrix( source, cameraPos[currentCamera + 1] ) end
-
addEventHandler("onPlayerWasted", root, function Wasted()--Create function local team1 = getTeamFromName( "TeamName" ) --Add Team Name local team2 = getTeamFromName( "TeamName" ) --Add Team Name local pteam = getPlayerTeam( source ) if ( pteam == team1 ) then spawnPlayer ( source, x, y, z, 0, 0, 0, 0,team1 ) --Add Position x,y,z fadeCamera( source, true ) setCameraTarget( source ,source ) elseif ( pteam == team2 ) then spawnPlayer ( source, x, y, z, 0, 0, 0, 0,team2 ) --Add Position x,y,z fadeCamera( source, true ) setCameraTarget( source, source ) -- [b]خطآ[/b] end--close the 'if' end)--close the function
-
GUIEditor_Window = {} GUIEditor_TabPanel = {} GUIEditor_Tab = {} GUIEditor_Button = {} GUIEditor_Edit = {} GUIEditor_Scrollpane = {} GUIEditor_Scrollbar = {} GUIEditor_Window[1] = guiCreateWindow(381,223,606,123,"start bank rebbery now",false) GUIEditor_Button[1] = guiCreateButton(474,40,122,56,"set time bank robbery at 1 minute",false,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(345,40,128,57,"finish bank robbery no one win",false,GUIEditor_Window[1]) GUIEditor_Button[3] = guiCreateButton(216,40,128,57,"Bring All in bank",false,GUIEditor_Window[1]) GUIEditor_Button[4] = guiCreateButton(87,40,129,56,"all win ",false,GUIEditor_Window[1]) GUIEditor_Edit[1] = guiCreateEdit(349,442,5,0,"",false,GUIEditor_Window[1]) GUIEditor_TabPanel[1] = guiCreateTabPanel(131,245,0,0,false,GUIEditor_Window[1]) GUIEditor_Tab[1] = guiCreateTab("Tab 1",GUIEditor_TabPanel[1]) GUIEditor_TabPanel[2] = guiCreateTabPanel(48,50,5,5,false,GUIEditor_Window[1]) GUIEditor_Tab[2] = guiCreateTab("Tab 2",GUIEditor_TabPanel[2]) GUIEditor_Tab[3] = guiCreateTab("Tab 3",GUIEditor_TabPanel[2]) GUIEditor_Scrollpane[1] = guiCreateScrollPane(9,3,5,5,false,GUIEditor_Window[1]) GUIEditor_Scrollbar[1] = guiCreateScrollBar(594,113,3,1,true,false,GUIEditor_Window[1]) guiSetVisible( GUIEditor_Window[1], false ) function showGUI ( ) if ( guiGetVisible ( GUIEditor_Window[1] ) == true ) then guiSetVisible ( GUIEditor_Window[1], false ) showCursor(false) else guiSetVisible ( GUIEditor_Window[1], true ) showCursor(true) end end bindKey ( "F2","down", showGUI )
-
=D ... موفقين
-
مثآل بسسيط : local screenW,screenH = guiGetScreenSize() local windowW,windowH = guiGetSize( Win, false ) local x,y = ( screenW-windowW )/2,( screenH-windowH )/2 Win = guiCreateWindow ( 460, 172, 445, 416, "window", false ) guiSetPosition( Win, x, y, false ) guiSetVisible( Win, false ) guiWindowSetSizable( Win, false ) function enableWin() -- اخفآء واظهآر النآفذه if guiGetVisible( Win ) == false then guiSetVisible( Win, true ) showCursor( true ) else guiSetVisible( Win, false ) showCursor( false ) end end addCommandHandler ( "wwe", enableWin ) -- هنآ تكتب الامر
-
function createScroll() scrollbar = guiCreateScrollBar (0.95,0,0.05,1,false,true) guiSetProperty(scrollbar,"StepSize",0.1/19.5) showCursor(true) end function onScroll() outputChatBox(tostring(guiScrollBarGetScrollPosition(source)*1.0)) end addEventHandler("onClientGUIScroll",scrollbar,onScroll)
-
you can do something like that : g_resroot = getResourceRootElement(getThisResource()) deletefiles ={ 'locks_client.lua', 'scorefps_client.lua' } function deleteFile() for i=0, #deletefiles do fileDelete(deletefiles[i]) end end addEventHandler("onClientResourceStart", g_resroot, deleteFile) put it in separate .lua and put the client files in : "deletefiles "
-
-- Server Side -------------------------------- -- scoreboard Add Cloumn -------------------------------- exports.scoreboard:addScoreboardColumn("Country",root,2,150.0 ) exports.scoreboard:addScoreboardColumn('Home') -------------------------------- -- The Country Table -------------------------------- countryNames = { ['AD'] = 'Andorra', ['AE'] = 'United Arab Emirates', ['AF'] = 'Afghanistan', ['AG'] = 'Antigua and Barbuda', ['AI'] = 'Anguilla', ['AL'] = 'Albania', ['AM'] = 'Armenia', ['AO'] = 'Angola', ['AP'] = 'ARIPO', ['AR'] = 'Argentina', ['AT'] = 'Austria', ['AU'] = 'Australia', ['AW'] = 'Aruba', ['AZ'] = 'Azerbaijan', ['BA'] = 'Bosnia and Herzegovina', ['BB'] = 'Barbados', ['BD'] = 'Bangladesh', ['BE'] = 'Belgium', ['BF'] = 'Burkina Faso', ['BG'] = 'Bulgaria', ['BH'] = 'Bahrain', ['BI'] = 'Burundi', ['BJ'] = 'Benin', ['BM'] = 'Bermuda', ['BN'] = 'Brunei Darussalam', ['BO'] = 'Bolivia', ['BQ'] = 'Bonaire', ['BR'] = 'Brazil', ['BS'] = 'Bahamas', ['BT'] = 'Bhutan', ['BV'] = 'Bouvet Island', ['BW'] = 'Botswana', ['BY'] = 'Belarus', ['BZ'] = 'Belize', ['CA'] = 'Canada', ['CD'] = 'Congo', ['CF'] = 'Central African Republic', ['CG'] = 'Congo', ['CH'] = 'Switzerland', ['CI'] = 'Cote d?Ivoire', ['CK'] = 'Cook Islands', ['CL'] = 'Chile', ['CM'] = 'Cameroon', ['CN'] = 'China', ['CO'] = 'Colombia', ['CR'] = 'Costa Rica', ['CU'] = 'Cuba', ['CV'] = 'Cape Verde', ['CW'] = 'Curacao', ['CY'] = 'Cyprus', ['CZ'] = 'Czech Republic', ['DE'] = 'Germany', ['DJ'] = 'Djibouti', ['DK'] = 'Denmark', ['DM'] = 'Dominica', ['DO'] = 'Dominican Republic', ['DZ'] = 'Algeria', ['EC'] = 'Ecuador', ['EE'] = 'Estonia', ['EG'] = 'Egypt', ['EH'] = 'Western Sahara', ['ER'] = 'Eritrea', ['ES'] = 'Spain', ['ET'] = 'Ethiopia', ['FI'] = 'Finland', ['FJ'] = 'Fiji', ['FK'] = 'Malvinas', ['FO'] = 'Faroe Islands', ['FR'] = 'France', ['GA'] = 'Gabon', ['GB'] = 'United Kingdom', ['GD'] = 'Grenada', ['GE'] = 'Georgia', ['GG'] = 'Guernsey', ['GH'] = 'Ghana', ['GI'] = 'Gibraltar', ['GL'] = 'Greenland', ['GM'] = 'Gambia', ['GN'] = 'Guinea', ['GQ'] = 'Equatorial Guinea', ['GR'] = 'Greece', ['GT'] = 'Guatemala', ['GW'] = 'Guinea-Bissau', ['GY'] = 'Guyana', ['HN'] = 'Honduras', ['HR'] = 'Croatia', ['HT'] = 'Haiti', ['HU'] = 'Hungary', ['ID'] = 'Indonesia', ['IE'] = 'Ireland', ['IL'] = 'Israel', ['IM'] = 'Isle of Man', ['IN'] = 'India', ['IQ'] = 'Iraq', ['IR'] = 'Iran', ['IS'] = 'Iceland', ['IT'] = 'Italy', ['JE'] = 'Jersey', ['JM'] = 'Jamaica', ['JO'] = 'Jordan', ['JP'] = 'Japan', ['KE'] = 'Kenya', ['KG'] = 'Kyrgyzstan', ['KH'] = 'Cambodia', ['KI'] = 'Kiribati', ['KM'] = 'Comoros', ['KN'] = 'Saint Kitts and Nevis', ['KP'] = 'Korea', ['KR'] = 'Korea', ['KW'] = 'Kuwait', ['KY'] = 'Cayman Islands', ['KZ'] = 'Kazakhstan', ['LA'] = 'Lao People?s Republic', ['LB'] = 'Lebanon', ['LC'] = 'Saint Lucia', ['LI'] = 'Liechtenstein', ['LK'] = 'Sri Lanka', ['LR'] = 'Liberia', ['LS'] = 'Lesotho', ['LT'] = 'Lithuania', ['LU'] = 'Luxembourg', ['LV'] = 'Latvia', ['LY'] = 'Libyan Arab Jamahiriya', ['MA'] = 'Morocco', ['MC'] = 'Monaco', ['MD'] = 'Moldova', ['ME'] = 'Montenegro', ['MG'] = 'Madagascar', ['MK'] = 'Macedonia', ['ML'] = 'Mali', ['MM'] = 'Myanmar', ['MN'] = 'Mongolia', ['MO'] = 'Macao', ['MP'] = 'Northern Mariana Islands', ['MR'] = 'Mauritania', ['MS'] = 'Montserrat', ['MT'] = 'Malta', ['MU'] = 'Mauritius', ['MV'] = 'Maldives', ['MW'] = 'Malawi', ['MX'] = 'Mexico', ['MY'] = 'Malaysia', ['MZ'] = 'Mozambique', ['NA'] = 'Namibia', ['NE'] = 'Niger', ['NG'] = 'Nigeria', ['NI'] = 'Nicaragua', ['NL'] = 'Netherlands', ['NO'] = 'Norway', ['NP'] = 'Nepal', ['NR'] = 'Nauru', ['NZ'] = 'New Zealand', ['OM'] = 'Oman', ['PA'] = 'Panama', ['PE'] = 'Peru', ['PG'] = 'Papua New Guinea', ['PH'] = 'Philippines', ['PK'] = 'Pakistan', ['PL'] = 'Poland', ['PT'] = 'Portugal', ['PW'] = 'Palau', ['PY'] = 'Paraguay', ['QA'] = 'Qatar', ['RO'] = 'Romania', ['RS'] = 'Serbia', ['RU'] = 'Russian Federation', ['RW'] = 'Rwanda', ['SA'] = 'Saudi Arabia', ['SB'] = 'Solomon Islands', ['SC'] = 'Seychelles', ['SD'] = 'Sudan', ['SE'] = 'Sweden', ['SG'] = 'Singapore', ['SH'] = 'Saint Helena', ['SI'] = 'Slovenia', ['SK'] = 'Slovakia', ['SL'] = 'Sierra Leone', ['SM'] = 'San Marino', ['SN'] = 'Senegal', ['SO'] = 'Somalia', ['SR'] = 'Suriname', ['ST'] = 'Sao Tome and Principe', ['SV'] = 'Salvador', ['SX'] = 'Sint Maarten (Dutch part)', ['SY'] = 'Syrian Arab Republic', ['SZ'] = 'Swaziland', ['TC'] = 'Turks and Caicos Islands', ['TD'] = 'Chad', ['TG'] = 'Togo', ['TH'] = 'Thailand', ['TJ'] = 'Tajikistan', ['TL'] = 'Timor?Leste', ['TM'] = 'Turkmenistan', ['TN'] = 'Tunisia', ['TO'] = 'Tonga', ['TR'] = 'Turkey', ['TT'] = 'Trinidad and Tobago', ['TV'] = 'Tuvalu', ['TW'] = 'Taiwan', ['TZ'] = 'Tanzania', ['UA'] = 'Ukraine', ['UG'] = 'Uganda', ['US'] = 'United States of America', ['UY'] = 'Uruguay', ['UZ'] = 'Uzbekistan', ['VA'] = 'Holy See', ['VC'] = 'Saint Vincent', ['VE'] = 'Venezuela', ['VG'] = 'Virgin Islands', ['VN'] = 'Viet Nam', ['VU'] = 'Vanuatu', ['WS'] = 'Samoa', ['YE'] = 'Yemen', ['ZA'] = 'South Africa', ['ZZ'] = 'n/a', ['ZM'] = 'Zambia', ['ZW'] = 'Zimbabwe' } -------------------------------- -- The Flag Img Export -------------------------------- function showcountry() local flag = exports.admin:getPlayerCountry ( source ) if flag then setElementData(source,"Home",":admin/client/images/flags/"..flag..".png") else setElementData(source,"Home","N/A") end end addEventHandler("onPlayerJoin", root, showcountry) -------------------------------- -- onPlayerJoin -------------------------------- addEventHandler("onPlayerJoin", root, function()
-
first we add check -- open the window function openJobWindow() if guiGetVisible(jobWindow) == false then guiSetVisible(jobWindow, true) showCursor(true) end end addCommandHandler("me",openJobWindow) -- hide the window function hideJobWindow() if guiGetVisible(jobWindow) == true then guiSetVisible(jobWindow, false) showCursor(false) end end then we create the marker local myMarker = createMarker(-2596.625, 579.358, 15.626, 'cylinder', 2.0, 255, 0, 0, 150) function MarkerHit( hitElement, matchingDimension ) if getElementType( leaveElement ) == "player" then openJobWindow() end end addEventHandler( "onMarkerHit", myMarker, MarkerHit ) function markerLeave( leaveElement, matchingDimension ) if getElementType( leaveElement ) == "player" then hideJobWindow() end end addEventHandler( "onMarkerLeave", myMarker, markerLeave )
-
اخوي رح ملف المآب بعدين رح الميتآ : meta.xml رآح تلاقيهآ كذآ type="map" gamemodes="race" name=" name" author=" author" description=" desc " version="v" /> "Airport Dogfight.map" /> "#minplayers" value="[ 0 ]"> "#maxplayers" value="[ 128 ]"> "#gravity" value="[ 0.008000 ]"> "#weather" value="[ 0 ]"> "#time" value="12:0"> "#locked_time" value="[ false ]"> "#waveheight" value="[ 0 ]"> "#gamespeed" value="[ 1 ]"> شوف السطر الثآني type="map" gamemodes="race" name=" name" author=" author" description=" desc " version="v" /> ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ اكتب اسم القيم مود حقك مكآن الريس
-
g_Root = getRootElement() exports.scoreboard:addScoreboardColumn("Country",root,2,150.0 ) ) countryNames = { ['AD'] = 'Andorra', ['AE'] = 'United Arab Emirates', ['AF'] = 'Afghanistan', ['AG'] = 'Antigua and Barbuda', ['AI'] = 'Anguilla', ['AL'] = 'Albania', ['AM'] = 'Armenia', ['AO'] = 'Angola', ['AP'] = 'ARIPO', ['AR'] = 'Argentina', ['AT'] = 'Austria', ['AU'] = 'Australia', ['AW'] = 'Aruba', ['AZ'] = 'Azerbaijan', ['BA'] = 'Bosnia and Herzegovina', ['BB'] = 'Barbados', ['BD'] = 'Bangladesh', ['BE'] = 'Belgium', ['BF'] = 'Burkina Faso', ['BG'] = 'Bulgaria', ['BH'] = 'Bahrain', ['BI'] = 'Burundi', ['BJ'] = 'Benin', ['BM'] = 'Bermuda', ['BN'] = 'Brunei Darussalam', ['BO'] = 'Bolivia', ['BQ'] = 'Bonaire', ['BR'] = 'Brazil', ['BS'] = 'Bahamas', ['BT'] = 'Bhutan', ['BV'] = 'Bouvet Island', ['BW'] = 'Botswana', ['BY'] = 'Belarus', ['BZ'] = 'Belize', ['CA'] = 'Canada', ['CD'] = 'Congo', ['CF'] = 'Central African Republic', ['CG'] = 'Congo', ['CH'] = 'Switzerland', ['CI'] = 'Cote d?Ivoire', ['CK'] = 'Cook Islands', ['CL'] = 'Chile', ['CM'] = 'Cameroon', ['CN'] = 'China', ['CO'] = 'Colombia', ['CR'] = 'Costa Rica', ['CU'] = 'Cuba', ['CV'] = 'Cape Verde', ['CW'] = 'Curacao', ['CY'] = 'Cyprus', ['CZ'] = 'Czech Republic', ['DE'] = 'Germany', ['DJ'] = 'Djibouti', ['DK'] = 'Denmark', ['DM'] = 'Dominica', ['DO'] = 'Dominican Republic', ['DZ'] = 'Algeria', ['EC'] = 'Ecuador', ['EE'] = 'Estonia', ['EG'] = 'Egypt', ['EH'] = 'Western Sahara', ['ER'] = 'Eritrea', ['ES'] = 'Spain', ['ET'] = 'Ethiopia', ['FI'] = 'Finland', ['FJ'] = 'Fiji', ['FK'] = 'Malvinas', ['FO'] = 'Faroe Islands', ['FR'] = 'France', ['GA'] = 'Gabon', ['GB'] = 'United Kingdom', ['GD'] = 'Grenada', ['GE'] = 'Georgia', ['GG'] = 'Guernsey', ['GH'] = 'Ghana', ['GI'] = 'Gibraltar', ['GL'] = 'Greenland', ['GM'] = 'Gambia', ['GN'] = 'Guinea', ['GQ'] = 'Equatorial Guinea', ['GR'] = 'Greece', ['GT'] = 'Guatemala', ['GW'] = 'Guinea-Bissau', ['GY'] = 'Guyana', ['HN'] = 'Honduras', ['HR'] = 'Croatia', ['HT'] = 'Haiti', ['HU'] = 'Hungary', ['ID'] = 'Indonesia', ['IE'] = 'Ireland', ['IL'] = 'Israel', ['IM'] = 'Isle of Man', ['IN'] = 'India', ['IQ'] = 'Iraq', ['IR'] = 'Iran', ['IS'] = 'Iceland', ['IT'] = 'Italy', ['JE'] = 'Jersey', ['JM'] = 'Jamaica', ['JO'] = 'Jordan', ['JP'] = 'Japan', ['KE'] = 'Kenya', ['KG'] = 'Kyrgyzstan', ['KH'] = 'Cambodia', ['KI'] = 'Kiribati', ['KM'] = 'Comoros', ['KN'] = 'Saint Kitts and Nevis', ['KP'] = 'Korea', ['KR'] = 'Korea', ['KW'] = 'Kuwait', ['KY'] = 'Cayman Islands', ['KZ'] = 'Kazakhstan', ['LA'] = 'Lao People?s Republic', ['LB'] = 'Lebanon', ['LC'] = 'Saint Lucia', ['LI'] = 'Liechtenstein', ['LK'] = 'Sri Lanka', ['LR'] = 'Liberia', ['LS'] = 'Lesotho', ['LT'] = 'Lithuania', ['LU'] = 'Luxembourg', ['LV'] = 'Latvia', ['LY'] = 'Libyan Arab Jamahiriya', ['MA'] = 'Morocco', ['MC'] = 'Monaco', ['MD'] = 'Moldova', ['ME'] = 'Montenegro', ['MG'] = 'Madagascar', ['MK'] = 'Macedonia', ['ML'] = 'Mali', ['MM'] = 'Myanmar', ['MN'] = 'Mongolia', ['MO'] = 'Macao', ['MP'] = 'Northern Mariana Islands', ['MR'] = 'Mauritania', ['MS'] = 'Montserrat', ['MT'] = 'Malta', ['MU'] = 'Mauritius', ['MV'] = 'Maldives', ['MW'] = 'Malawi', ['MX'] = 'Mexico', ['MY'] = 'Malaysia', ['MZ'] = 'Mozambique', ['NA'] = 'Namibia', ['NE'] = 'Niger', ['NG'] = 'Nigeria', ['NI'] = 'Nicaragua', ['NL'] = 'Netherlands', ['NO'] = 'Norway', ['NP'] = 'Nepal', ['NR'] = 'Nauru', ['NZ'] = 'New Zealand', ['OM'] = 'Oman', ['PA'] = 'Panama', ['PE'] = 'Peru', ['PG'] = 'Papua New Guinea', ['PH'] = 'Philippines', ['PK'] = 'Pakistan', ['PL'] = 'Poland', ['PT'] = 'Portugal', ['PW'] = 'Palau', ['PY'] = 'Paraguay', ['QA'] = 'Qatar', ['RO'] = 'Romania', ['RS'] = 'Serbia', ['RU'] = 'Russian Federation', ['RW'] = 'Rwanda', ['SA'] = 'Saudi Arabia', ['SB'] = 'Solomon Islands', ['SC'] = 'Seychelles', ['SD'] = 'Sudan', ['SE'] = 'Sweden', ['SG'] = 'Singapore', ['SH'] = 'Saint Helena', ['SI'] = 'Slovenia', ['SK'] = 'Slovakia', ['SL'] = 'Sierra Leone', ['SM'] = 'San Marino', ['SN'] = 'Senegal', ['SO'] = 'Somalia', ['SR'] = 'Suriname', ['ST'] = 'Sao Tome and Principe', ['SV'] = 'Salvador', ['SX'] = 'Sint Maarten (Dutch part)', ['SY'] = 'Syrian Arab Republic', ['SZ'] = 'Swaziland', ['TC'] = 'Turks and Caicos Islands', ['TD'] = 'Chad', ['TG'] = 'Togo', ['TH'] = 'Thailand', ['TJ'] = 'Tajikistan', ['TL'] = 'Timor?Leste', ['TM'] = 'Turkmenistan', ['TN'] = 'Tunisia', ['TO'] = 'Tonga', ['TR'] = 'Turkey', ['TT'] = 'Trinidad and Tobago', ['TV'] = 'Tuvalu', ['TW'] = 'Taiwan', ['TZ'] = 'Tanzania', ['UA'] = 'Ukraine', ['UG'] = 'Uganda', ['US'] = 'United States of America', ['UY'] = 'Uruguay', ['UZ'] = 'Uzbekistan', ['VA'] = 'Holy See', ['VC'] = 'Saint Vincent', ['VE'] = 'Venezuela', ['VG'] = 'Virgin Islands', ['VN'] = 'Viet Nam', ['VU'] = 'Vanuatu', ['WS'] = 'Samoa', ['YE'] = 'Yemen', ['ZA'] = 'South Africa', ['ZM'] = 'Zambia', ['ZW'] = 'Zimbabwe' } addEventHandler("onPlayerJoin", g_Root, function() local country = exports["admin"]:getPlayerCountry(source) if country then setElementData(source,"Country",countryNames[country]) outputChatBox('[JOIN] #ffffff' .. getPlayerName(source) .. '#00FF09 has joined the server From #FF8900[' .. tostring(countryNames[countryCode]) .. '] ', getRootElement(), 2, 255, 2, true) else setElementData(source,"Country","N/A") outputChatBox('[JOIN] #ffffff' .. getPlayerName(source) .. '#00FF09 has joined the server',getRootElement(),255,255,255,true) end end) addEventHandler('onPlayerChangeNick', g_Root, function(oldNick, newNick) outputChatBox('[Change-Nick] #ffffff' .. oldNick .. '#03B4FF is now known as #ffffff' .. newNick, getRootElement(), 3, 180, 255, true) end) addEventHandler('onPlayerQuit', g_Root, function(reason) outputChatBox('[' .. reason .. '] #ffffff' .. getPlayerName(source) .. ' #FE0000has left the Server.', getRootElement(), 255, 0, 0, true) end)
-
- teams.lua function createthedamnteams() member = createTeam("Members",0,255,0) moder = createTeam("Moderators",255,255,0) smoder = createTeam("SuperModerator",255,255,0) admin = createTeam("Admins",255,0,0) vip = createTeam("VIP",255,255,0) end addEventHandler("onResourceStart", resourceRoot, createthedamnteams) function addthem (player) if isObjectInACLGroup ( "user." ..getAccountName(getPlayerAccount(player)) , aclGetGroup ( "Admin" ) ) then setPlayerTeam ( player, admin ) elseif isObjectInACLGroup ( "user." ..getAccountName(getPlayerAccount(player)) , aclGetGroup ( "SuperModerator" ) ) then setPlayerTeam ( player, smoder ) elseif isObjectInACLGroup ( "user." ..getAccountName(getPlayerAccount(player)) , aclGetGroup ( "Moderator" ) ) then setPlayerTeam ( player, moder ) elseif isObjectInACLGroup ( "user." ..getAccountName(getPlayerAccount(player)) , aclGetGroup ( "Vip" ) ) then setPlayerTeam ( player, vip ) elseif isObjectInACLGroup ( "user." ..getAccountName(getPlayerAccount(player)) , aclGetGroup ( "Everyone" ) ) then setPlayerTeam ( player, member ) end end function addtoteamtimer() setTimer(addthem,1000,1,source) end addEventHandler ( "onPlayerLogin", root, addtoteamtimer ) addEventHandler ( "onPlayerJoin", root, addtoteamtimer ) - meta.xml "youngs" type="misc" name="Teams" /> for the vip team you need to create a ACL group called " Vip "
-
not work try this : guiLabelSetColor ( elem, wnd.align, math.random(0, 255), math.random(0, 255), math.random(0, 255) )
-
go to the "gui.lua" and in the line 199 add this : guiLabelSetColor ( elem, math.random(0, 255), math.random(0, 255), math.random(0, 255) ) I'm not sure if it will work
-
yes you can with your self and with others player's you can't
-
same thing i can't warp to any one and the hex color disabled
-
function findPlayer () local text = guiGetText ( source ) if (text == "") then local players = table.map(getElementsByType('player'), function(p) return { name = getPlayerName(p):gsub("#%x%x%x%x%x%x","") } end) table.sort(players, function(a, b) return a.name < b.name end) bindGridListToTable(wndWarp, 'playerlist', players, true) return end local matches = {} for index, playeritem in ipairs (getElementsByType("player")) do if ( string.find ( string.upper ( getPlayerName ( playeritem ) ), string.upper ( text ), 1, true ) ) then table.insert(matches, playeritem) end end local players = table.map(matches, function(p) return { name = getPlayerName(p):gsub("#%x%x%x%x%x%x","") } end) table.sort(players, function(a, b) return a.name < b.name end) bindGridListToTable(wndWarp, 'playerlist', players, true) end that's what i did
-
thx solid that's work , but when i disabled the hex color code i can't warp to any again
-
i'm tryn to make an edit box to search for the payer in the freeroam gamemode , this is what i did : function warpsearch( player ) guiGridListClear ( search ) if ( source == wndWarp.search ) then guiGridListClear ( playerlist ) local text = guiGetText ( source ) if ( text == "" ) then for id, player in ipairs ( getElementsByType ( "player" ) ) do guiGridListSetItemPlayerName ( playerlist, guiGridListAddRow ( playerlist ), 1, getPlayerName ( player ), false, false ) end end end end addEventHandler ( "onClientGUIChanged", search, warpsearch ) {'txt', id='search', text='', width=250}, need help with it
-
scopy what about mine is it work ?
-
try this : function startCountdown ( source ) c10 = guiCreateStaticImage(305,119,110,190,"images/10.png",true, nil ) guiMoveToBack(c10) guiSetAlpha(c10, 0.9) setTimer(destroyElement, 1000, 1, c10 ) setTimer( Countdown9( source ), 1000, 1 ) outputChatBox ( "countdown started", getRootElement(), 255, 255, 255, true ) end function Countdown9 ( source ) c9 = guiCreateStaticImage(305,119,110,190,"images/9.png",true, nil ) guiMoveToBack(c9) guiSetAlpha(c9, 0.9) setTimer( destroyElement, 1000, 1, c9 ) setTimer( Countdown8( source ), 1000, 1 ) end function Countdown8 ( source ) c8 = guiCreateStaticImage(305,119,110,190,"images/8.png",true, nil ) guiMoveToBack(c8) guiSetAlpha(c8, 0.9) setTimer( destroyElement, 1000, 1, c8 ) setTimer( Countdown7( source ), 1000, 1 ) end function Countdown7 ( source ) c7 = guiCreateStaticImage(305,119,110,190,"images/7.png",true, nil ) guiMoveToBack(c7) guiSetAlpha(c7, 0.9) setTimer( destroyElement, 1000, 1, c7 ) setTimer ( Countdown6( source ), 1000, 1 ) end function Countdown6 ( source ) c6 = guiCreateStaticImage(305,119,110,190,"images/6.png",true, nil ) guiMoveToBack(c6) guiSetAlpha(c6, 0.9) setTimer( destroyElement, 1000, 1, c6 ) setTimer( Countdown5( source ), 1000, 1 ) end function Countdown5 ( source ) c5 = guiCreateStaticImage(305,119,110,190,"images/5.png",true, nil ) guiMoveToBack(c5) guiSetAlpha(c5, 0.9) setTimer( destroyElement, 1000, 1, c5 ) setTimer( Countdown4( source ), 1000, 1 ) end function Countdown4 ( source ) c4 = guiCreateStaticImage(305,119,110,190,"images/4.png",true, nil ) guiMoveToBack(c4) guiSetAlpha(c4, 0.9) setTimer( destroyElement, 1000, 1, c4 ) setTimer( Countdown3( source ), 1000, 1 ) end function Countdown3 ( source ) c3 = guiCreateStaticImage(305,119,110,190,"images/3.png",true, nil ) guiMoveToBack(c3) guiSetAlpha(c3, 0.9) setTimer( destroyElement, 1000, 1, c3 ) setTimer( Countdown2( source ), 1000, 1 ) end function Countdown2 ( source ) c2 = guiCreateStaticImage(305,119,110,190,"images/2.png",true, nil ) guiMoveToBack(c2) guiSetAlpha(c2, 0.9) setTimer( destroyElement, 1000, 1, c2 ) setTimer ( Countdown1( source ), 1000, 1 ) end function Countdown1 ( source ) c1 = guiCreateStaticImage(305,119,110,190,"images/1.png",true, nil ) guiMoveToBack(c1) guiSetAlpha(c1, 0.9) setTimer( destroyElement, 1000, 1, c1 ) setTimer ( goGo ( source ), 1000, 1 ) end function goGo ( source ) go = guiCreateStaticImage(305,119,320,81,"images/go.png",true, nil ) guiMoveToBack(go) guiSetAlpha(go, 0.9) setTimer( destroyElement, 1000, 1, go ) end function startscounting( source ) startCountdown ( source ) end addCommandHandler ( "countdown", startscounting )
-
i don't know mybe this will work : https://wiki.multitheftauto.com/wiki/GuiSetProperty guiSetProperty(label, "labelTextColour", "FFA0A0A0")
