-
Posts
10,056 -
Joined
-
Days Won
27
Everything posted by iPrestege
-
I'm not sure if that what you want but try this : addEventHandler("onClientGUIClick", GUIEditor.button[1], function ( ) text1 = guiGetText ( GUIEditor.edit[1] ) text2 = guiGetText ( valasz1 ) text3 = guiGetText ( valasz2 ) if text1 ~= "" then triggerServerEvent( "server",localPlayer,text1 ) setTimer ( function( ) text1 = nil end,5000, 1 ) end end,false ) addEventHandler ( 'onClientRender',root, function ( ) dxDrawText(text1, (screenW * 0.2924) + 1, (screenH * 0.3778) + 1, (screenW * 0.7014) + 1, (screenH * 0.5400) + 1, tocolor(0, 0, 0, 255), 2.50, "default-bold", "left", "top", false, true, false, false, false) dxDrawText(text1, screenW * 0.2924, screenH * 0.3778, screenW * 0.7014, screenH * 0.5400, tocolor(255, 0, 0, 255), 2.50, "default-bold", "left", "top", false, true, false, false, false) end )
-
Can you please post the createPed code and freeze element with it?
-
I'm not sure what are you trying to do but add render event then on gui click event makes no sense and wrong way to do something. and text1 defined where so after 5 seconds you want to make text1 empty?
-
Keep up the good work MTA Team
- 37 replies
-
- public testing
- release announcement
- (and 4 more)
-
A. I'm not sure because i'm not interested about it. Q. Do you like rainy days or snowy winter days more?
-
Olympic Power Points cco
-
Here's an simple example : function aDailyUpdate ( ) -- Create function local aHour,aMinute = getTime ( ) -- get ingame time if ( aHour == 00 and aMinute == 00 ) then -- check if the time is 00:00 removeEventHandler ( 'onClientRender',root,aDailyUpdate ) -- remove the function handler aCall ( ) -- call the function we need outputChatBox ( 'Time now is 00:00' ) -- make a chat box note setTimer ( function ( ) addEventHandler ( 'onClientRender',root,aDailyUpdate ) -- we add the event again so make an update daily end,5000,1 ) end end addEventHandler ( 'onClientRender',root,aDailyUpdate ) -- add the function handler function aCall ( ) -- called function outputChatBox ( 'Hello world!' )-- chat box message end It's a client side code.
-
Then u can use this function : getTime So what are you trying to do if the time is 00:00 ?
-
You want to make it with player real time? or ingame time?
-
جرب : aTeam = createTeam ( "Police" , 100, 149, 237 ) setTeamFriendlyFire ( aTeam,true ) addEvent("JoinPolice",true) addEventHandler("JoinPolice",root , function ( ) if ( getPlayerTeam ( source ) and getPlayerTeam ( source ) == aTeam ) then return outputChatBox ("* you have this team",source,255,0,0,true) end setPlayerTeam ( source ,aTeam ) setElementModel (source,280) giveWeapon ( source, 3, 1 ) giveWeapon ( source, 23, 200 ) outputChatBox ( 'Now You Are in police job!',source,0,255,0 ) end )
-
ملفات الاستضافة او مكونات السيرفر اللي مسوية في السيرفر او الخادم قديم والله اعلم
-
local franMark1 = createMarker ( 1762.6,-1813.4,12.6,'cylinder',5,255,0,0,35 ) local franMark2 = createMarker ( 1805,-1748.6,51.5,'cylinder',5,255,0,0,115 ) function teleport ( player ) if ( getElementType ( player ) == 'player' ) then local aPlayer = isPedInVehicle ( player ) and getPedOccupiedVehicle ( player ) or player if ( source == franMark1 ) then if is_group ( player ) or is_admin ( player ) then setElementPosition ( aPlayer,1791,-1780,53) setElementFrozen ( aPlayer,true ) setTimer ( setElementFrozen,300,1,aPlayer,false ) end elseif ( source == franMark2 ) then if is_group ( player ) or is_admin ( player ) then setElementPosition ( aPlayer,1775.8,-1821.3,14.5 ) setElementFrozen ( aPlayer,true) setTimer ( setElementFrozen,300,1,aPlayer,false ) end end end end addEventHandler ( 'onMarkerHit',root,teleport )
-
اتوقع ملفات السيرفر اللي عندك قديمة او شيء زي كذا مالقيت لها حل
-
فكرة | سيرفر حياة واقعيه ! هل من مشارك؟
iPrestege replied to falcoon-host's topic in Arabic / العربية
بالفعل وفيه سيرفرات عربية قامت بسبب هذا القيم مود اللي انتشر مع اني اشوفة عادي الافضل يصمم عليه بناء على حياة واقعيه بطرق افضل عموماً فترة وبيروح جو الحياة الواقعيه زي حرب العصابات -
فكرة | سيرفر حياة واقعيه ! هل من مشارك؟
iPrestege replied to falcoon-host's topic in Arabic / العربية
بالتوفيق لكن عندي سؤال عن سيرفرات الحياة الواقعيه القيم مود اللي يستعملونة اللي تحط فية اسمك الاولي والاخير او الثاني وتحدد لون شخصيتك هذا قيم مود متسرب ولا منشور؟ لان اشوف عليه اقبال وفية سيرفرات جديدة قايمة بسببها -
-
المفروض يشتغل تمام انت متاكد انك في قروب Moderator و طلعت وسجلت دخول وصكيت ميوت وتقدر تفتحة؟ شف الديبوج سكربت يعطيك شيء؟
-
Your code is makes no sense in here from what i see also please use Code editor to post a code and select Lua.
-
استخدم محرر الاكواد Lua