Jump to content

WASSIm.

Members
  • Posts

    1,411
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by WASSIm.

  1. WASSIm.

    Question

    now not working
  2. WASSIm.

    Question

    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
  3. 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
  4. WASSIm.

    Question

    its function i make it with guiCreateStaticImage
  5. WASSIm.

    Question

    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
  6. WASSIm.

    Question

    now windows not working and if make local nothing change
  7. WASSIm.

    Question

    i need windows in onClientRender but if make it its create again addEventHandler("onClientRender",getRootElement(), function() window = guiCreateWindow(...) end )
  8. WASSIm.

    Question

    hi guys i have question. how make GUI dont create again to onClientRender?
  9. looool malek ti awal mara ya3ml server ki makontach m3ah raw fdha7na 9odem tourist hhhhhhhhhhh
  10. 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!!!!
  11. WASSIm.

    small help

    opss sry its working but setElementModel not working
  12. WASSIm.

    small help

    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)
  13. WASSIm.

    small help

    Oh i fixed this now but not working
  14. WASSIm.

    small help

    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)
  15. WASSIm.

    small help

    [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)
  16. WASSIm.

    small help

    show me nothing
  17. WASSIm.

    small help

    show me nothing
  18. WASSIm.

    small help

    no if make this working if not (country == SA) then but i want this but not working if (country == SA) then
  19. WASSIm.

    small help

    SA is (saudi arabia) is country
×
×
  • Create New...