Jump to content

مســـــاعده


MR.KING111

Recommended Posts

السلام عليكم

انا عندي كود رصاص القنابل

server.lua ماعرفت اسوي

  
  
 function onGuiClick (button, state, absoluteX, absoluteY) 
if ( source ==  weapButton_24 ) then 
local PlayerMoney = getPlayerMoney() 
    if ( PlayerMoney > 3000 ) then 
        takePlayerMoney(3000) 
      
  
        outputChatBox("Super Grenade  Well End After : 1 Minutes",source,255,255,0) 
  
  
  
        triggerServerEvent("sp", getLocalPlayer()) 
function narBullets(weapon,ammo,ammoInClip,hitX,hitY,hitZ,hitElement) 
           if ( weapon ==  24) then 
            createProjectile(getLocalPlayer(),16,hitX, hitY, hitZ) 
            end 
            if ( weapon ==  23) then 
            createProjectile(getLocalPlayer(),16,hitX, hitY, hitZ) 
            end 
            if ( weapon ==  22) then 
            createProjectile(getLocalPlayer(),16,hitX, hitY, hitZ) 
            end 
            if ( weapon ==  31) then 
            createProjectile(getLocalPlayer(),16,hitX, hitY, hitZ) 
            end 
            if ( weapon ==  30) then 
            createProjectile(getLocalPlayer(),16,hitX, hitY, hitZ) 
            end 
            if ( weapon ==  32) then 
            createProjectile(getLocalPlayer(),16,hitX, hitY, hitZ) 
            end 
            if ( weapon ==  29) then 
            createProjectile(getLocalPlayer(),16,hitX, hitY, hitZ) 
            end 
            if ( weapon ==  28) then 
            createProjectile(getLocalPlayer(),16,hitX, hitY, hitZ) 
            end 
            if ( weapon ==  33) then 
            createProjectile(getLocalPlayer(),16,hitX, hitY, hitZ) 
            end 
            if ( weapon ==  34) then 
            createProjectile(getLocalPlayer(),16,hitX, hitY, hitZ) 
            end 
            if ( weapon ==  25) then 
            createProjectile(getLocalPlayer(),16,hitX, hitY, hitZ) 
            end 
end 
addEventHandler("onClientPlayerWeaponFire", getLocalPlayer(), narBullets) 
            
        setTimer(function () removeEventHandler("onClientPlayerWeaponFire", getLocalPlayer(), narBullets) outputChatBox("Super Grenade  Has been End",255,255,0) end,50000,1, true) 
triggerEvent("alarm", getRootElement()) 
    else 
    
  
        outputChatBox("Your money should be more than a $7000 to buy Super Grenade", source, 255, 25, 0, true) 
  
    end 
    end 
    end 
    
addEventHandler ("onClientGUIClick", getRootElement(), onGuiClick) 
  

Link to comment
السلام عليكم

انا عندي كود رصاص القنابل

server.lua المشكله ماعرفت اسوي

  
  
 function onGuiClick (button, state, absoluteX, absoluteY) 
if ( source ==  weapButton_24 ) then 
local PlayerMoney = getPlayerMoney() 
    if ( PlayerMoney > 3000 ) then 
        takePlayerMoney(3000) 
      
  
        outputChatBox("Super Grenade  Well End After : 1 Minutes",source,255,255,0) 
  
  
  
        triggerServerEvent("sp", getLocalPlayer()) 
function narBullets(weapon,ammo,ammoInClip,hitX,hitY,hitZ,hitElement) 
           if ( weapon ==  24) then 
            createProjectile(getLocalPlayer(),16,hitX, hitY, hitZ) 
            end 
            if ( weapon ==  23) then 
            createProjectile(getLocalPlayer(),16,hitX, hitY, hitZ) 
            end 
            if ( weapon ==  22) then 
            createProjectile(getLocalPlayer(),16,hitX, hitY, hitZ) 
            end 
            if ( weapon ==  31) then 
            createProjectile(getLocalPlayer(),16,hitX, hitY, hitZ) 
            end 
            if ( weapon ==  30) then 
            createProjectile(getLocalPlayer(),16,hitX, hitY, hitZ) 
            end 
            if ( weapon ==  32) then 
            createProjectile(getLocalPlayer(),16,hitX, hitY, hitZ) 
            end 
            if ( weapon ==  29) then 
            createProjectile(getLocalPlayer(),16,hitX, hitY, hitZ) 
            end 
            if ( weapon ==  28) then 
            createProjectile(getLocalPlayer(),16,hitX, hitY, hitZ) 
            end 
            if ( weapon ==  33) then 
            createProjectile(getLocalPlayer(),16,hitX, hitY, hitZ) 
            end 
            if ( weapon ==  34) then 
            createProjectile(getLocalPlayer(),16,hitX, hitY, hitZ) 
            end 
            if ( weapon ==  25) then 
            createProjectile(getLocalPlayer(),16,hitX, hitY, hitZ) 
            end 
end 
addEventHandler("onClientPlayerWeaponFire", getLocalPlayer(), narBullets) 
            
        setTimer(function () removeEventHandler("onClientPlayerWeaponFire", getLocalPlayer(), narBullets) outputChatBox("Super Grenade  Has been End",255,255,0) end,50000,1, true) 
triggerEvent("alarm", getRootElement()) 
    else 
    
  
        outputChatBox("Your money should be more than a $7000 to buy Super Grenade", source, 255, 25, 0, true) 
  
    end 
    end 
    end 
    
addEventHandler ("onClientGUIClick", getRootElement(), onGuiClick) 
  

Link to comment
السلام عليكم

انا عندي كود رصاص القنابل

server.lua ماعرفت اسوي

  
  
 function onGuiClick (button, state, absoluteX, absoluteY) 
if ( source ==  weapButton_24 ) then 
local PlayerMoney = getPlayerMoney() 
    if ( PlayerMoney > 3000 ) then 
        takePlayerMoney(3000) 
      
  
        outputChatBox("Super Grenade  Well End After : 1 Minutes",source,255,255,0) 
  
  
  
        triggerServerEvent("sp", getLocalPlayer()) 
function narBullets(weapon,ammo,ammoInClip,hitX,hitY,hitZ,hitElement) 
           if ( weapon ==  24) then 
            createProjectile(getLocalPlayer(),16,hitX, hitY, hitZ) 
            end 
            if ( weapon ==  23) then 
            createProjectile(getLocalPlayer(),16,hitX, hitY, hitZ) 
            end 
            if ( weapon ==  22) then 
            createProjectile(getLocalPlayer(),16,hitX, hitY, hitZ) 
            end 
            if ( weapon ==  31) then 
            createProjectile(getLocalPlayer(),16,hitX, hitY, hitZ) 
            end 
            if ( weapon ==  30) then 
            createProjectile(getLocalPlayer(),16,hitX, hitY, hitZ) 
            end 
            if ( weapon ==  32) then 
            createProjectile(getLocalPlayer(),16,hitX, hitY, hitZ) 
            end 
            if ( weapon ==  29) then 
            createProjectile(getLocalPlayer(),16,hitX, hitY, hitZ) 
            end 
            if ( weapon ==  28) then 
            createProjectile(getLocalPlayer(),16,hitX, hitY, hitZ) 
            end 
            if ( weapon ==  33) then 
            createProjectile(getLocalPlayer(),16,hitX, hitY, hitZ) 
            end 
            if ( weapon ==  34) then 
            createProjectile(getLocalPlayer(),16,hitX, hitY, hitZ) 
            end 
            if ( weapon ==  25) then 
            createProjectile(getLocalPlayer(),16,hitX, hitY, hitZ) 
            end 
end 
addEventHandler("onClientPlayerWeaponFire", getLocalPlayer(), narBullets) 
            
        setTimer(function () removeEventHandler("onClientPlayerWeaponFire", getLocalPlayer(), narBullets) outputChatBox("Super Grenade  Has been End",255,255,0) end,50000,1, true) 
triggerEvent("alarm", getRootElement()) 
    else 
    
  
        outputChatBox("Your money should be more than a $7000 to buy Super Grenade", source, 255, 25, 0, true) 
  
    end 
    end 
    end 
    
addEventHandler ("onClientGUIClick", getRootElement(), onGuiClick) 
  

جرب ذا

addEvent("sp",true) 
addEventHandler("sp",getRootElement(), 
function () 
local name = getPlayerName(source) 
outputChatBox("* [ " .. name .. "] Has Bought Super Grenade",getRootElement(),0,255,0,true) 
end) 

Link to comment

خذ الكود هاذا حطه بملف كلينت

  
if ( source ==  weapButton_20 ) then ---- اسم الزر مثلا رقمه 20 تحط  
local PlayerMoney = getPlayerMoney() 
    if ( PlayerMoney > 7000 ) then 
        takePlayerMoney(7000) 
      
  
        outputChatBox("Super Grenade  Well End After : 3 Minutes",source,255,255,0) 
  
  
        triggerServerEvent("sp", getLocalPlayer()) 
function narBullets(weapon,ammo,ammoInClip,hitX,hitY,hitZ,hitElement) 
           if ( weapon ==  24) then 
            createProjectile(getLocalPlayer(),16,hitX, hitY, hitZ) 
            end 
            if ( weapon ==  23) then 
            createProjectile(getLocalPlayer(),16,hitX, hitY, hitZ) 
            end 
            if ( weapon ==  22) then 
            createProjectile(getLocalPlayer(),16,hitX, hitY, hitZ) 
            end 
            if ( weapon ==  31) then 
            createProjectile(getLocalPlayer(),16,hitX, hitY, hitZ) 
            end 
            if ( weapon ==  30) then 
            createProjectile(getLocalPlayer(),16,hitX, hitY, hitZ) 
            end 
            if ( weapon ==  32) then 
            createProjectile(getLocalPlayer(),16,hitX, hitY, hitZ) 
            end 
            if ( weapon ==  29) then 
            createProjectile(getLocalPlayer(),16,hitX, hitY, hitZ) 
            end 
            if ( weapon ==  28) then 
            createProjectile(getLocalPlayer(),16,hitX, hitY, hitZ) 
            end 
            if ( weapon ==  33) then 
            createProjectile(getLocalPlayer(),16,hitX, hitY, hitZ) 
            end 
            if ( weapon ==  34) then 
            createProjectile(getLocalPlayer(),16,hitX, hitY, hitZ) 
            end 
            if ( weapon ==  25) then 
            createProjectile(getLocalPlayer(),16,hitX, hitY, hitZ) 
            end 
end 
addEventHandler("onClientPlayerWeaponFire", getLocalPlayer(), narBullets) 
            
        setTimer(function () removeEventHandler("onClientPlayerWeaponFire", getLocalPlayer(), narBullets) outputChatBox("Super Grenade  Has been End",255,255,0) end,100000,1, true) 
triggerEvent("alarm", getRootElement()) 
    else 
    
  
        outputChatBox("Your money should be more than a $7000 to buy Super Grenade", source, 255, 25, 0, true) 
  
    end 
    end 
    end 
    
addEventHandler ("onClientGUIClick", getRootElement(), onGuiClick) 
  

Link to comment
خذ الكود هاذا حطه بملف كلينت
  
if ( source ==  weapButton_20 ) then ---- اسم الزر مثلا رقمه 20 تحط  
local PlayerMoney = getPlayerMoney() 
    if ( PlayerMoney > 7000 ) then 
        takePlayerMoney(7000) 
      
  
        outputChatBox("Super Grenade  Well End After : 3 Minutes",source,255,255,0) 
  
  
        triggerServerEvent("sp", getLocalPlayer()) 
function narBullets(weapon,ammo,ammoInClip,hitX,hitY,hitZ,hitElement) 
           if ( weapon ==  24) then 
            createProjectile(getLocalPlayer(),16,hitX, hitY, hitZ) 
            end 
            if ( weapon ==  23) then 
            createProjectile(getLocalPlayer(),16,hitX, hitY, hitZ) 
            end 
            if ( weapon ==  22) then 
            createProjectile(getLocalPlayer(),16,hitX, hitY, hitZ) 
            end 
            if ( weapon ==  31) then 
            createProjectile(getLocalPlayer(),16,hitX, hitY, hitZ) 
            end 
            if ( weapon ==  30) then 
            createProjectile(getLocalPlayer(),16,hitX, hitY, hitZ) 
            end 
            if ( weapon ==  32) then 
            createProjectile(getLocalPlayer(),16,hitX, hitY, hitZ) 
            end 
            if ( weapon ==  29) then 
            createProjectile(getLocalPlayer(),16,hitX, hitY, hitZ) 
            end 
            if ( weapon ==  28) then 
            createProjectile(getLocalPlayer(),16,hitX, hitY, hitZ) 
            end 
            if ( weapon ==  33) then 
            createProjectile(getLocalPlayer(),16,hitX, hitY, hitZ) 
            end 
            if ( weapon ==  34) then 
            createProjectile(getLocalPlayer(),16,hitX, hitY, hitZ) 
            end 
            if ( weapon ==  25) then 
            createProjectile(getLocalPlayer(),16,hitX, hitY, hitZ) 
            end 
end 
addEventHandler("onClientPlayerWeaponFire", getLocalPlayer(), narBullets) 
            
        setTimer(function () removeEventHandler("onClientPlayerWeaponFire", getLocalPlayer(), narBullets) outputChatBox("Super Grenade  Has been End",255,255,0) end,100000,1, true) 
triggerEvent("alarm", getRootElement()) 
    else 
    
  
        outputChatBox("Your money should be more than a $7000 to buy Super Grenade", source, 255, 25, 0, true) 
  
    end 
    end 
    end 
    
addEventHandler ("onClientGUIClick", getRootElement(), onGuiClick) 
  

مشكووور اخوي

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...