Jump to content

iPrestege

Members
  • Posts

    10,056
  • Joined

  • Last visited

  • Days Won

    27

Everything posted by iPrestege

  1. Will am working for one but not for race gamemode for play and war gamemode for my own server am working on it from month ago .
  2. I Start learn "LUA"from here : https://forum.multitheftauto.com/viewtopic.php?f=148&t=40809 And don't forget the wiki ! Good luck !
  3. بـ النسبة لي اول مرهـ آعرف هـ الكوماند تسلم .. : )
  4. It's not easy ? No it's not easy to make something like a "FFS Gaming" or "TG Gaming" ..etc You must be a good scripter.
  5. No -.- it's not right it's hard some what .
  6. You have to use : string.find -- to find the maps for the gamemode
  7. iPrestege

    gui shown

    Try this not tested : bindKey('F7','down', function ( ) for i = 1,9 do guiSetVisible ( GUIEditor.label[i] , not guiGetVisible ( GUIEditor.label[i] ) ) showCursor ( guiGetVisible ( GUIEditor.label[i] ) ) end for i = 1,3 do guiSetVisible ( GUIEditor.button[i] , not guiGetVisible ( GUIEditor.button[i] ) ) guiSetVisible ( GUIEditor.staticimage[i] , not guiGetVisible ( GUIEditor.staticimage[i] ) ) showCursor ( guiGetVisible ( GUIEditor.button[i] ) ) end end )
  8. Maybe there's much errors on the script because that i think .
  9. Will this doesn't make a ' Game Mode 'just a data to help you to script your script .
  10. iPrestege

    gui shown

    Try this : bindKey('F7','down', function ( ) for i = 1,3 do guiSetVisible ( GUIEditor.button[i] , not guiGetVisible ( GUIEditor.button[i] ) ) showCursor ( guiGetVisible ( GUIEditor.button[i] ) ) end end ) This only for 3 buttons 'elements' not tested but should work .
  11. If you get it the data has been set it successfully .
  12. iPrestege

    gui shown

    I Can't understand what are you trying to do .
  13. Try this and tell me if it output or no . GUIEditor = { button = {} } addEventHandler("onClientResourceStart",resourceRoot, function() GUIEditor.button[1] = guiCreateButton ( 0.44, 0.31, 0.15, 0.24, "",true ) addEventHandler("onClientGUIClick",GUIEditor.button[1],Click,false) end ) function Click( ) setElementData(localPlayer,"gamemode","deathmatch",true) outputChatBox( "* Data True !!",0,255,0 ) end
  14. You didn't understand what i said above .
  15. You're relative position make no sense . You're code must be : local x,y = RelativeToAbsolute(xrelative ,yrelative ) dxDrawImage(x,y,rX,rY,"img/dm.png", 0, 0, 0, tocolor(255, 255, 255, 255), "center", "center", true)
  16. This make no sense at all you have to use it when player click it using : onClientGUIClick .
  17. * Download MTADiag and follow the instructions and check the URL for a CAPTCHA before posting it here .
  18. I think that He want that They can speak if or not they are frozen. Ah i see that sorry Try this my mistake . elseif commandName == "congelar" then for i,v in ipairs(players) do toggleAllControls(v, true, true, true) outputChatBox("#ff4444[EVENTO]#ffffff O administrador "..getPlayerName(thePlayer).." #ffffffte congelou.",v,178, 34, 34, true ) end elseif commandName == "descongelar" then for i,v in ipairs(players) do toggleAllControls(v, false, false, true) outputChatBox("#ff4444[EVENTO]#ffffff O administrador "..getPlayerName(thePlayer).." #ffffffte descongelou.",v,178, 34, 34, true ) end
  19. ههنآ إنلحس ممخي ! ماعليك انت من الكود الي تحت اهم شيء الي فوق الي تحت فنكشن جاهز عشان يسوي هذا الكلام المهم هو setTimer(CreateTextItem,1000,1,player,1000, 0, 0, 255, 3,"1 Second!!",_,_,"center","top" ) setTimer(CreateTextItem,2000,1,player,1000, 0, 0, 255, 3,"2 Second!!",_,_,"center","top" ) setTimer(CreateTextItem,3000,1,player,1000, 0, 0, 255, 3,"3 Second!!",_,_,"center","top" ) CreateTextItem بس مايضبط ذذا الا لو ركبت ذا الكود عشان يعرف function CreateTextItem ( player, time, r, g, b, scale, text, x, y, alignX, alignY) if not player or not time or not text then return end if not tonumber(r) and not tonumber(g) and not tonumber(b) then r, g, b = 255, 0, 0 end if not scale then scale = 1 end if ( isElement( player ) and type ( text ) == 'string' and tonumber( time) ) then local Display = textCreateDisplay () local newtextItem = textCreateTextItem ( text, x or 0.5, y or 0.5, 2, r, g, b, 255, scale, alignX or "center", alignY or "center" ) textDisplayAddText ( Display, newtextItem ) textDisplayAddObserver ( Display, player ) setTimer(textDestroyTextItem, time, 1, newtextItem) setTimer(textDestroyDisplay, time, 1, Display) end end ي خوي الفاهم يريحني كثير ..
  20. addCommandHandler isObjectInACLGroup getAccountName Use these .
  21. و اللي يرحم امك لا تعدل ردك كل شوي ! كل موضوع تعدلة !!؟ type = string = "" not = ~= اذا ماكان يخوي سهله بالانجليزي ! tonumber = للارقام or = او and = مع return = يرجع
  22. Try it : elseif commandName == "congelar" then for i,v in ipairs(players) do toggleAllControls(v, true) outputChatBox("#ff4444[EVENTO]#ffffff O administrador "..getPlayerName(thePlayer).." #ffffffte congelou.",v,178, 34, 34, true ) end elseif commandName == "descongelar" then for i,v in ipairs(players) do toggleAllControls(v, false) toggleControl ( v, "chatbox", true ) outputChatBox("#ff4444[EVENTO]#ffffff O administrador "..getPlayerName(thePlayer).." #ffffffte descongelou.",v,178, 34, 34, true ) end
×
×
  • Create New...