-
Posts
1,862 -
Joined
-
Days Won
8
Everything posted by Rockyz
-
^ timeToEnd = 5 -- عدد الدقائق للانتهاء addEventHandler ( 'onClientGUIClick', button, function ( ) setWorldSpecialPropertyEnabled ( 'aircars', true ) setTimer ( setWorldSpecialPropertyEnabled, timeToEnd * 50000, 1, 'aircars', false ) end, false )
-
بالتوفيق لك
-
# .. وعليكم السلام سكربت خرافي واصل يابطل ! لاكن مافهمت فكرته يعني يحذف الشخصيات او يغيرهم ؟
-
وعليكم السلام , سكربت خرافي اهنيك تنسيق خرافي واصل يابطل
-
هذا مو اعطاء رتب هذا اعطاء خاصية
-
addEventHandler ( "onVehicleStartEnter", resourceRoot, function ( thePlayer ) if ( source == car ) then local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) if ( isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "VIP" ) ) ) then outputChatBox ( "Welcome To Your Vehicle ", thePlayer, 255, 255, 0, true ) else cancelEvent ( ) outputChatBox ( "You Must Be In VIP Group ", thePlayer, 255, 255, 0, true ) end end end )
-
Client Side : -- Client Side # for i, v in ipairs ( xMonsterUpgrades ) do rows = guiGridListAddRow ( itemGridlist ) guiGridListSetItemText ( itemGridlist, rows, 1, v[1], false, false ) guiGridListSetItemData ( itemGridlist, rows, 1, v[2] ) end addEventHandler ( "onClientGUIClick", root, function ( ) if ( source == btnItemsz ) then if ( guiGridListGetSelectedItem ( itemGridlist ) ~= -1 ) then local Seel = guiGridListGetItemData ( itemGridlist, guiGridListGetSelectedItem ( itemGridlist ), 1 ) triggerServerEvent ( "changeWheels", localPlayer, Seel ) end end end ) Server Side : -- Server Side # veh = { } addEvent( "changeWheels", true ) addEventHandler ( "changeWheels", root, function ( Seel ) if ( isPedInVehicle ( source ) ) then local getVh = getPedOccupiedVehicle ( soure ) local setVh = addVehicleUpgrade ( getVh, Seel ) if ( ( getVh ) and ( setVh ) ) then outputChatBox ( "[VIP System] Your Vehicle has succesfuly Upgraded.", source, 0, 255, 0, true ) else outputChatBox ( "[VIP System] Failed", source, 0, 255, 0, true ) end outputChatBox ( "[VIP System] You dont have a vehicle.", source, 255, 0, 0, true ) end end )
-
-- Client Side # for i, v in ipairs ( xMonsterUpgrades ) do rows = guiGridListAddRow ( itemGridlist ) guiGridListSetItemText ( itemGridlist, rows, 1, v[1], false, false ) guiGridListSetItemData ( itemGridlist, rows, 1, v[2] ) end addEventHandler ( "onClientGUIClick", root, function ( ) if ( source == btnItemsz ) then if ( guiGridListGetSelectedItem ( itemGridlist ) ~= -1 ) then local Seel = guiGridListGetItemData ( itemGridlist, guiGridListGetSelectedItem ( itemGridlist ), 1 ) triggerServerEvent ( "changeWheels", localPlayer, Seel ) end end end ) -- Server Side # veh = { } addEvent( "changeWheels", true ) addEventHandler ( "changeWheels", root, function ( Seel ) if ( isElement ( veh [ source ] ) ) then destroyElement ( veh [ source ] ) end addVehicleUpgrade ( veh [ source ], Seel ) x, y, z = getElementPosition ( source ) veh [ source ] = createVehicle ( 400, x, y, z ) outputChatBox( "[VIP System] Your Vehicle has succesfuly Upgraded.", source, 0, 255, 0, true ) end )
-
^^ + اذا تبي تعرف تفرق هذا الكود كلنت ولا لا من الالوان شوف الفنكشن مثلا ذة stopSound احمر = كلنت warpPedIntoVehicle برتقالي = سيرفر getElementsByType ازرق = سيرفر وكلنت
-
بآلتوفيق خالد, لم تتم الزيارة لأن السيرفر مقفل
-
Tapleto-Host| Linux/Windows VPS - Game Servers - TeamSpeak
Rockyz replied to TAPL's topic in الاستضافات
بالتوفيق يا شبح -
Tapleto-Host| Linux/Windows VPS - Game Servers - TeamSpeak
Rockyz replied to TAPL's topic in الاستضافات
OPG ? -
طيب ياشاطر ابي مود يخلي الاعب مجنون ----- + مودات FFS او TG
-
guiWindowSetSizable(GUIEditor.window[1], false) اطرح الكود كامل !
-
z24d = 0 GUIEditor = { label = {} } addEventHandler("onClientResourceStart", resourceRoot, function() local screenW, screenH = guiGetScreenSize() GUIEditor.label[1] = guiCreateLabel((screenW - 130) / 2, (screenH - 24) / 2, 130, 24, "0", false) guiSetFont(GUIEditor.label[1], "default-bold-small") guiLabelSetColor(GUIEditor.label[1], 1, 0, 0) setTimer( function ( ) z24d = z24d + 5 guiSetText(GUIEditor.label[1],tonumber(z24d)) end,5000,0) end ) مجربه شغال
-
z24d = 0 GUIEditor = { label = {} } function zddA ( ) local screenW, screenH = guiGetScreenSize ( ) if ( eventName == "onClientResourceStart" ) then GUIEditor.label[1] = guiCreateLabel ( (screenW - 130) / 2, (screenH - 24) / 2, 130, 24, "0", false) guiSetFont ( GUIEditor.label[1], "default-bold-small") guiLabelSetColor ( GUIEditor.label[1], 1, 0, 0) else z24d = z24d + 1 guiSetText ( GUIEditor.label[1], tonumber ( z24d ) ) end end addEventHandler ( "onClientResourceStart", resourceRoot, zddA ) addEventHandler ( "onClientRender", resourceRoot, zddA )
-
تصميم خرافي , استمر للأمام !
