Jump to content

X-SHADOW

Members
  • Posts

    721
  • Joined

  • Last visited

Everything posted by X-SHADOW

  1. السلام عليكم ورحمة الله وبركاته اما بعد اليوم سويت لكم الكود + مشروح في نفس الكود بيكون شي بسيط للي يبي يسوي شوب ومايعرف يسوي اعطاء سلاح ~ الكلينت ~ طبعا مايتغير في الكيلنت غير اسم الزر وهو Button addEventHandler('onClientGUIClick', root, -- عندما يم الضغط على الازرار function ( ) -- فتح وظيفة جديده بدون اسم if ( source == Button ) then -- اذا الاعب ضغط على الزر Button triggerServerEvent('M4', localPlayer) -- ارسال الطلب الى السيرفر باسم M4 end -- اغلاق end -- اغلاق ) -- اغلاق سيرفر ~ وبدال 31 استبدله بايدي السلاح اللي تبي تعطيه addEvent('M4', true) --- الوظيفة m4 addEventHandler('M4', root, -- الوظيفة m4 function ( ) -- فتح وظيفة giveWeapon( source, 31, 200 ) -- اعطاء سلاح رشاش ب200 طلق للاعب اللي ضغط الزر outputChatBox('تم اعطاءك رشاش ب 200 طلقه', source, 255, 0 ,0 ) --- رسالة عند اخذ سلاح end )
  2. you wnat cancel Damage form melee attack?
  3. X-SHADOW Come and Blow every Body ! addEventHandler( 'onClientGUIClick', root, function () if ( source == Button2 ) then triggerServerEvent('TakeMoney', localPlayer) end end ) addEvent('TakeMoney',true) addEventHandler('TakeMoney', root, function () if(getPlayerMoney(source) >=50000 )then takePlayerMoney(source, 50000 ) else outputChatBox("*Message Here !", source, 255, 0, 0, true) end end )
  4. Well i dont think the mta-team well do something unless if they can block it tha'ts great !
  5. X-SHADOW

    help

    Because he put getLocalPlayer and it's only ClientSide should replace with source and there is space in joinevent .
  6. وانت ناوي تنشر المود ؟ اذا منت ناوي تنشره سو طريقة برستيج وبكذا يدخلون سيرفرك ويشتغل المود بدون ماينزل في جهازهم ~
  7. OR! He Means anime he Must Use the anime code i dont know how made it ...
  8. Ok Send it Pm , iam Going to sleep Now i well replay when i wake up .
  9. accName == ? marker = createMarker(1698.8289, 443.2510, 1281.71423, "cylinder", 1.3, 255, 0, 0, 153) addEventHandler("onMarkerHit", marker, function (player) if ( isPedInVehicle(player) ) then return end accName = getAccountName( player ) if accName then if isObjectInACLGroup("user."..accName, aclGetGroup("Everyone")) then outputChatBox("#FF0000* #FFF000This House Only For '#FF6600Manster#FFF000'", player, 255, 255, 0, true) else outputChatBox("#FF0000* #FFF000Welcome "..getPlayerName(player).."", player, 255, 255, 0, true) setElementInterior(player, 0) setElementPosition(player, 1832, 452, 5.9) end marker2 = createMarker(1832.0512, 450.86312, 5.21512, "cylinder", 1.3, 255, 0, 0, 153) setElementInterior(marker2, 0) addEventHandler("onMarkerHit", marker2, function (player) accName = getAccountName( player ) if accName then if isObjectInACLGroup("user."..accName, aclGetGroup("Everyone")) then outputChatBox("#FF0000* #FFF000This House Only For #00FF00Manster .", player, 255, 255, 0, true) else setElementInterior(player, 0) setElementPosition(player, 1698, 445, 1282) outputChatBox("#FF0000* #FFF000Good Bye "..getPlayerName(player).."", player, 255, 255, 0, true) end end end ) end end)
  10. i well help you but i wont make the whole script deal ?
  11. why wasting your Money ? it's Simpel to make it you just need to learn that's all .
  12. ههههه ضاوي انت حاطهم كلهم flase وش الفايده ض1
  13. انا ابرمج لك بمقابل
  14. the problem is the dam wiki dont work i could not read any ****
  15. Are You kiding me ? you say it's ServerSide only you didn't say it wont work if he use isPlayerDead .
  16. use type thePlayer and the function () ? it's not defined exports.scoreboard:scoreboardAddColumn ( "VIP" ) function getvip() local playes = getElementsByType ( "player" ) for theKey,source in ipairs(playes) do local acc = getPlayerAccount ( source ) if acc then local goldvip = getAccountData ( acc, "goldvip" ) local nonevip = getAccountData ( acc, "nonevip" ) local silvervip = getAccountData ( acc, "silvervip" ) local bronzevip = getAccountData ( acc, "bronzevip" ) local none = "None" local bronze = "Bronze" local silver = "Silver" local gold = "Gold" if nonevip == "None" then setElementData ( source, "VIP", none ) else if bronzevip == "Bronze" then setElementData ( source, "VIP", bronze ) else if silvervip == "Silver" then setElementData ( source, "VIP", silver ) else if goldvip == "Gold" then setElementData ( source, "VIP", gold ) end end end end end end end setTimer(getvip,100,0) addEventHandler ( "onResourceStart", getResourceRootElement(getThisResource()), getvip )
  17. This function is deprecated. This means that its use is discouraged and that it might not exist in future versions. -------------------------------------------------------------------------------- Please use isPedDead instead.
  18. yes if my ammo == -1 then playSound(shellsound ) and is it possble to add the Bullet shell to ? Like this addEvent('Reload', true) addEventHandler('Reload', localPlayer, function( ) playSound('sounds/reload.wav', localPlayer) end ) addEventHandler('onClientPlayerWeaponFire', localPlayer, function(weapon) if (getPedAmmoInClip == -1 ) then if( weapon == 24 ) then playSound('sounds/shell_r.mp3', localPlayer) end end end)
  19. Hello Guys is it possble to dedect the bullet shell + gun Becuse i have reload sound + Bullt shell sound how can i play them for player ?
  20. setPedAnimation -- ترقص ~
×
×
  • Create New...