-
Posts
10,056 -
Joined
-
Last visited
-
Days Won
27
Everything posted by iPrestege
-
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 .
-
I Start learn "LUA"from here : https://forum.multitheftauto.com/viewtopic.php?f=148&t=40809 And don't forget the wiki ! Good luck !
-
بـ النسبة لي اول مرهـ آعرف هـ الكوماند تسلم .. : )
-
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.
-
الاول ظريف جدا
-
No -.- it's not right it's hard some what .
-
You have to use : string.find -- to find the maps for the gamemode
-
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 )
-
Maybe there's much errors on the script because that i think .
-
Will this doesn't make a ' Game Mode 'just a data to help you to script your script .
-
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 .
-
If you get it the data has been set it successfully .
-
I Can't understand what are you trying to do .
-
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
-
You didn't understand what i said above .
-
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)
-
This make no sense at all you have to use it when player click it using : onClientGUIClick .
-
* Download MTADiag and follow the instructions and check the URL for a CAPTCHA before posting it here .
-
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
-
ههنآ إنلحس ممخي ! ماعليك انت من الكود الي تحت اهم شيء الي فوق الي تحت فنكشن جاهز عشان يسوي هذا الكلام المهم هو 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 ي خوي الفاهم يريحني كثير ..
-
addCommandHandler isObjectInACLGroup getAccountName Use these .
-
و اللي يرحم امك لا تعدل ردك كل شوي ! كل موضوع تعدلة !!؟ type = string = "" not = ~= اذا ماكان يخوي سهله بالانجليزي ! tonumber = للارقام or = او and = مع return = يرجع
-
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