mr.3mmar Posted November 2, 2012 Share Posted November 2, 2012 السلام عليكم ابي كود الرصاص المتفجر ابيه جاهز إذا ممكن Link to comment
TAPL Posted November 2, 2012 Share Posted November 2, 2012 https://wiki.multitheftauto.com/wiki/CreateExplosion Link to comment
==>ҭᾄlᾄl Posted November 2, 2012 Share Posted November 2, 2012 viewtopic.php?f=119&t=45224&p=452353&hilit=createExplosion#p452353 Link to comment
nony Posted November 3, 2012 Share Posted November 3, 2012 ايه والله حتا انا ابيه شوفوا وش الخطأ كلنت function onGuiClick (button, state, absoluteX, absoluteY) if ( source == shop_5 ) then function sumolet1 (weapon, ammo, ammoInClip, hitX, hitY, hitZ, hitElement ) if ( weapon == 24) then triggerServerEvent ("shonet" ,getLocalPlayer(), hitX, hitY, hitZ ) end if ( weapon == 23) then triggerServerEvent ("shonet" ,getLocalPlayer(), hitX, hitY, hitZ ) end if ( weapon == 22) then triggerServerEvent ("shonet" ,getLocalPlayer(), hitX, hitY, hitZ ) end if ( weapon == 31) then triggerServerEvent ("shonet" ,localPlayer, hitX, hitY, hitZ ) end if ( weapon == 30) then triggerServerEvent ("shonet" ,getLocalPlayer(), hitX, hitY, hitZ ) end if ( weapon == 32) then triggerServerEvent ("shonet" ,getLocalPlayer(), hitX, hitY, hitZ ) end if ( weapon == 29) then triggerServerEvent ("shonet" ,getLocalPlayer(), hitX, hitY, hitZ ) end if ( weapon == 28) then triggerServerEvent ("shonet" ,getLocalPlayer(), hitX, hitY, hitZ ) end if ( weapon == 33) then triggerServerEvent ("shonet" ,getLocalPlayer(), hitX, hitY, hitZ ) end if ( weapon == 34) then triggerServerEvent ("shonet" ,getLocalPlayer(), hitX, hitY, hitZ ) end if ( weapon == 25) then triggerServerEvent ("shonet" ,getLocalPlayer(), hitX, hitY, hitZ ) end end end addEventHandler ("onClientGUIClick", getRootElement(), onGuiClick) addEvent("sumolet",true) function sumolet () addEventHandler ("onClientPlayerWeaponFire",getLocalPlayer(), sumolet1) end end addEventHandler("sumolet",getRootElement(),sumolet) سيرفر addEvent("SuperBullet",true) function SuperBullet() local playerMoney = getPlayerMoney(source) if playerMoney >= 5000 then takePlayerMoney (source,5000) local name = getPlayerName(source) outputChatBox("#ffffff[#ff0000 " .. name .. " #ffffff] #FDD017 Has Bought #0000ffSuper Bullet ]",getRootElement(),255,0,0,true) triggerClientEvent ("sumolet" ,getRootElement()) else outputChatBox("* you Don't have enough Money !",source,255,0,0,true) end end addEventHandler("SuperBullet",getRootElement(),SuperBullet) --------------------------------------- addEvent("shonet", true) addEventHandler("shonet", getRootElement(), function(hitX, hitY, hitZ) createExplosion(hitX, hitY, hitZ,4, source) end ) Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now