Jump to content

Rockyz

Members
  • Posts

    1,862
  • Joined

  • Days Won

    8

Everything posted by Rockyz

  1. ^ timeToEnd = 5 -- عدد الدقائق للانتهاء addEventHandler ( 'onClientGUIClick', button, function ( ) setWorldSpecialPropertyEnabled ( 'aircars', true ) setTimer ( setWorldSpecialPropertyEnabled, timeToEnd * 50000, 1, 'aircars', false ) end, false )
  2. # .. وعليكم السلام سكربت خرافي واصل يابطل ! لاكن مافهمت فكرته يعني يحذف الشخصيات او يغيرهم ؟
  3. وعليكم السلام , سكربت خرافي اهنيك تنسيق خرافي واصل يابطل
  4. Rockyz

    'طلب

    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 )
  5. 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 )
  6. -- 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 )
  7. ^^ + اذا تبي تعرف تفرق هذا الكود كلنت ولا لا من الالوان شوف الفنكشن مثلا ذة stopSound احمر = كلنت warpPedIntoVehicle برتقالي = سيرفر getElementsByType ازرق = سيرفر وكلنت
  8. Rockyz

    طللب

    sound = ?
  9. Rockyz

    طللب

    'انت ماحددت اذا ضغط زر او دخل او وش' triggerServerEvent triggerClientEvent 'onClientRender' getElementPosition getDistanceBetweenPoints3D getScreenFromWorldPosition dxDrawText
  10. بآلتوفيق خالد, لم تتم الزيارة لأن السيرفر مقفل
  11. بالتوفيق يا شبح
  12. تداوي ولا تلودي
  13. طيب ياشاطر ابي مود يخلي الاعب مجنون ----- + مودات FFS او TG
  14. guiWindowSetSizable(GUIEditor.window[1], false) اطرح الكود كامل !
  15. Rockyz

    طلب

    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 ) مجربه شغال
  16. Rockyz

    طلب

    آسف كنت مو فاهمك كنت احسبك تقول كل ثانية يزيد 1
  17. Rockyz

    طلب

    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 )
  18. Rockyz

    طلب

    z24d = 0 addEventHandler ( 'onClientRender', resourceRoot, function ( ) z24d = z24d + 5 dxDrawText ( tonumber ( z24d ), .............. ) end )
  19. تصميم خرافي , استمر للأمام !
  20. حلا ولا بلا
  21. :[ ولا : )
×
×
  • Create New...