-
Posts
1,411 -
Joined
-
Last visited
-
Days Won
2
Everything posted by WASSIm.
-
function guidxCreateWindow(x,y,w,h,text,alpha) local sx,sy = guiGetScreenSize ( ) local win = guiCreateStaticImage( sx*x,sy*y,sx*w,sy*h, "black.png", false) local wx, wy = guiGetSize ( win, false ) guiSetProperty( win, "Alpha", alpha) local winup = guiCreateStaticImage( 0,0,1,0.1, "winup.jpg", true, win ) local text = guiCreateLabel(0,0,1, 1,text,true, winup) guiSetProperty( text, "Alpha", 300) guiLabelSetHorizontalAlign(text, "center") guiLabelSetVerticalAlign(text, "center") guiSetFont ( text, guiCreateFont( "font.ttf", 30 ) ) return win end function main ( ) start = getTickCount() addEventHandler ("onClientRender", root, pingstate) end bindKey ("F2","down", main) function pingstate ( ) if not dxgui then local x = 0.5 local y = 0.5 local w = 0.6 local h = 0.6 local now = getTickCount() local elapsedTime = now - start local endtime = start + 1000 local duration = endtime - start local progress = elapsedTime / duration local w1, h1, z = interpolateBetween ( 0, 0, 0, w, h, 0, progress, "OutInBounce") x1 = x-(w1/2) y1 = y-(h1/2) local dxgui = guidxCreateWindow(x1,y1,w1, h1,"SHOP PANEL",70) end end
-
a9ra ama ki ti tchof ena mafhmt chay https://wiki.multitheftauto.com/wiki/Database viewtopic.php?f=148&t=38203 viewtopic.php?f=148&t=42067
-
its function i make it with guiCreateStaticImage
-
function main ( ) start = getTickCount() addEventHandler ("onClientRender", root, move) end bindKey ("F2","down", main) function move ( ) local x = 0.5 local y = 0.5 local w = 0.6 local h = 0.6 local now = getTickCount() local elapsedTime = now - start local endtime = start + 1000 local duration = endtime - start local progress = elapsedTime / duration local w1, h1, z = interpolateBetween ( 0, 0, 0, w, h, 0, progress, "OutInBounce") x1 = x-(w1/2) y1 = y-(h1/2) local dxgui = guidxCreateWindow(x1,y1,w1, h1,"SHOP PANEL",70) end
-
now windows not working and if make local nothing change
-
i need windows in onClientRender but if make it its create again addEventHandler("onClientRender",getRootElement(), function() window = guiCreateWindow(...) end )
-
hi guys i have question. how make GUI dont create again to onClientRender?
-
[TN] Tunisian Theft Auto | الأول خادم التونسي
WASSIm. replied to WASSIm.'s topic in Maghrebi Arabic / Darija / الدارجة
xDDDDDDDDDDDDDDDD -
[TN] Tunisian Theft Auto | الأول خادم التونسي
WASSIm. replied to WASSIm.'s topic in Maghrebi Arabic / Darija / الدارجة
looool malek ti awal mara ya3ml server ki makontach m3ah raw fdha7na 9odem tourist hhhhhhhhhhh -
[TN] Tunisian Theft Auto | الأول خادم التونسي
WASSIm. replied to WASSIm.'s topic in Maghrebi Arabic / Darija / الدارجة
ala8alb ili m3aya mastanas yal3ab fi servers drift mta3 3arab 7amdolah konet m3ah raw radou 100% so3odi THX To9sed Hajwalah ? ! Non , 3ada , el drift 7aja wel hajwalah 7aja .. chouf el hajwalah wéldin booh yéjri fil 200 OMG!!!! -
opss sry its working but setElementModel not working
-
policeSkins = { [280]=true,[281]=true,[282]=true,[283]=true,[284]=true,[285]=true,[286]=true,[288]=true } soldiereSkins = { [287]=true } staffSkins = { [217]=true,[211]=true } function informPlayerOnModelChange(oldModel, newModel) if ( getElementType(source) == "player" ) then local PlayerTeam = getPlayerTeam(source) if (PlayerTeam) then local Teamname = getTeamName(PlayerTeam) if not (Teamname == "Police") and (policeSkins[newModel]) then setElementModel ( source, oldModel ) outputChatBox ( "Only policeman can use this skin!", source, 255, 0, 0) elseif not (Teamname == "Armed Forces") and (soldiereSkins[newModel]) then setElementModel ( source, oldModel ) outputChatBox ( "Only Soldier can use this skin!", source, 255, 0, 0) elseif not (Teamname == "STAFF") and (staffSkins[newModel]) then setElementModel ( source, oldModel ) outputChatBox ( "Only STAFF can use this skin!", source, 255, 0, 0) end end end end addEventHandler("onElementModelChange", root, informPlayerOnModelChange)
-
Oh i fixed this now but not working
-
thank you can help me for this he tell me Bad argument @ 'getTeamName' policeSkins = { [280]=true,[281]=true,[282]=true,[283]=true,[284]=true,[285]=true,[286]=true,[288]=true } soldiereSkins = { [287]=true } staffSkins = { [217]=true,[211]=true } function informPlayerOnModelChange(oldModel, newModel) if ( getElementType(source) == "player" ) then local Playerteam = getPlayerTeam(source) if (Playerteam) then local Teamname = getTeamName(playerTeam) if not (Teamname == "Police") and (policeSkins[newModel]) then setElementModel ( source, oldModel ) outputChatBox ( "Only policeman can use this skin!", source, 255, 0, 0) elseif not (Teamname == "Armed Forces") and (soldiereSkins[newModel]) then setElementModel ( source, oldModel ) outputChatBox ( "Only Soldier can use this skin!", source, 255, 0, 0) elseif not (Teamname == "STAFF") and (staffSkins[newModel]) then setElementModel ( source, oldModel ) outputChatBox ( "Only STAFF can use this skin!", source, 255, 0, 0) end end end end addEventHandler("onElementModelChange", root, informPlayerOnModelChange)
-
[02:05:57] WARNING: [admin]/admin/server/admin_ip2c.lua:19: Bad argument @ 'gettok' [02:05:57] WARNING: [admin]/admin/server/admin_ip2c.lua:20: Bad argument @ 'gettok' [02:05:57] ERROR: [admin]/admin/server/admin_ip2c.lua:20: attempt to perform arithmetic on a boolean value [02:05:57] ERROR: call: failed to call 'admin:getPlayerCountry' [string "?"] [02:05:57] CONNECT: WASSIm. connected (IP: 41.226.214.184 Serial: ****** Version: 1.3.3-9.05588.0) [02:05:57] JOIN: WASSIm. joined the game (IP: 41.226.214.184)
-
no if make this working if not (country == SA) then but i want this but not working if (country == SA) then
-
SA is (saudi arabia) is country