-
Posts
2,156 -
Joined
-
Last visited
-
Days Won
6
Everything posted by ' A F .
-
جرب function refreshMyList( ) local check = dbQuery( vehDB, ' SELECT * FROM `VehiclesSystem_Players2` WHERE pSerial=?',tostring(getPlayerSerial(source)) ); local results = dbPoll( check, -1 ) if ( type( results ) == 'table' and #results == 0 or not results ) then triggerClientEvent( source, 'VehiclesSystem;emptyMyList', source ) return end triggerClientEvent( source, 'VehiclesSystem;putMyVehicles', source, results ) end addEvent( 'refreshMyListS', true ) addEventHandler( 'refreshMyListS', root, refreshMyList )
-
addEventHandler("onClientGUIChanged",root,function ( ) if ( source == GUIEditor.edit[1] and guiGetText ( source ) == "Hello" ) then outputChatBox ( "Hi" , 0,255,0 , true ); end end );
-
onClientGUIChanged outputChatBox -- لو تبية للكل triggerServerEvent outputChatBox
-
سوي onPlayerWasted وأحذف اللاعب الي مات من الجدول وسوي تحقق ان الي بالمهمة اكثر من 1 وتحقق ان الي مات بالمهمة .
-
بألتوفيق لكم إن شاء الله
- 29 replies
-
- t.q
- سيرفر هجولة
-
(and 4 more)
Tagged with:
-
addCommandHandler ( "rg" , function ( player , cmd , username , password ) if ( cmd and username and password ) then local aNewAccount = addAccount ( username , password ); if ( aNewAccount ) then outputChatBox ( "* Done",player,0,255,0,true); setAccountData ( aNewAccount , "Password" , tostring ( password ) ); end end end ); addCommandHandler ( "gap" , function ( player , cmd , account ) local data = getAccountData ( getAccount ( account ) , "Password" ); if ( data ) then outputChatBox(data,player); else outputChatBox("Error",player); end end ); جرب المثال وشوف النتيجة
-
ومن قالك مايقدر يجيب حسابة يقدر يجيب الحساب الي سجل فيه عن طريق وظيفة addAccount
-
@#_iMr.[E]coo طريقتك غلط , طيب جرب الطريقة الي انا قلت بعدين قول انها خاطئة
-
@iMr.WiFi..! : مو شرط يسويها بـ SQLite يقدر يسويها بالاكوانت داتا setAccountData getAccount getAccountData
-
بالتوفيق لكم مقدماً .
-
aChatStatus = true; local Message = { [ 1 ] = { "تم فتح الشات" } , [2] = { "تم إغلاق الشات" } }; addEvent ( "CPANEL:onLockChat", true ) addEventHandler ( "CPANEL:onLockChat", root, function ( aValue ) if ( aValue == "say" ) then local aAccount = getPlayerAccount ( source ); if ( not isGuestAccount ( aAccount ) and isObjectInACLGroup("user."..getAccountName(aAccount),aclGetGroup("Console")) ) then aChatStatus = not aChatStatus outputChatBox ( "#[C.Console]: ".. ( aChatStatus == false and Message[2][1] or Message[1][1] ), root, 255, 255, 0, true ) end end end ) خذ هاذا الكود ماجربته , بالنسبة لـ كود ان الكونسل يكتب فقط اذا كأن الشات مقفل إستخدم هاذي الوظائف addEventHandler -- 'onPlayerChat' getPlayerAccount isObjectInACLGroup
-
طيب انا أقولك اطرحهم كلهم عشان بجربهم بالمحلي وأصحح الاخطاء اذا ماتبي ذا شيء رأجع لك .
-
اطرح الكلنت والسيرفر كامل
-
addEvent ( "Warp" , true ) addEventHandler ( "Warp" , root , function ( posX , posY , posZ , aMoney ) local aPlayerMoney = getPlayerMoney ( source ); if ( tonumber ( aPlayerMoney ) >= tonumber ( aMoney ) ) then takePlayerMoney ( source , tonumber ( aMoney ) ); setElementPosition ( source , posX , posY , posZ ); outputChatBox ( "* Warped",source,0,255,0,true); else outputChatBox("* You Don't Have Money ",source,255,0,0,true); end end ); Try This
-
سطر 4 انت حاط الداتا على الزر موب على اللاعب .. شكلك مسوية مستعجل @#ZA7F //=
-
onPlayerDamage ماتقدر تسوي له cancelEvent 'onClientPlayerDamage'
-
العفو حياك الله -- # إستخدم الوظائف هاذي يوم يرسل اللاعب باللوكال شات getElementsByType -- 'player' getPlayerAccount isGuestAccount isObjectInACLGroup outputChatBox
-
ضيف اللوكال شات للمود الي يطلع الكلام فوق راس اللاعب وسوي يوم يرسل رسالة باللوكال ترايقر زي ماهو مسوي يوم اللاعب يرسل بالشات الرئيسي واذا مافهمت اطرح السكربتين وبإذن الله مانقصر معك .
-
* Client Side : local screenW, screenH = guiGetScreenSize() addEventHandler("onClientRender",root,function ( ) if ( getElementHealth ( localPlayer ) <= 25 ) then dxDrawRectangle(0, 0, 0, 0, tocolor(255, 255, 255, 255), false) dxDrawRectangle(screenW * 0.0000, screenH * 0.0065, screenW * 1.0000, screenH * 0.9870, tocolor(63, 0, 0, 159), false) dxDrawText("You Will Dead", screenW * 0.3469, screenH * 0.8815, screenW * 0.7680, screenH * 0.9206, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "left", "top", false, false, false, false, false) end end );