Jump to content

problem


Recommended Posts

client side

guiCreateStaticImage( 210,10,90,70, "weapon/bullet.png",false,tab2) 
SuperBullet = guiCreateButton(210,80,90,30,"$3000 \nSuperBullet",false,tab2) 
------------------------------------------------------------------------ 
  
function xxx(button, state, absoluteX, absoluteY) 
if ( source == SuperBullet ) then 
triggerServerEvent("SuperBullet",getLocalPlayer()) 
end  
    addEventHandler ("onClientGUIClick", getRootElement(), xxx) 
------------------------------------------------------------------------- 
  
addEvent("sumolet",true) 
function sumolet (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 
    addEventHandler ("onClientPlayerWeaponFire",localPlayer, sumolet) 
    addEventHandler("sumolet",getRootElement(),sumolet) 
  

server side

addEvent("SuperBullet",true) 
function SuperBullet() 
    local playerMoney = getPlayerMoney(source) 
    if playerMoney >= 3000 then 
    takePlayerMoney (source,3000) 
    local name = getPlayerName(source) 
    outputChatBox("* [#000011  " .. name .. "#ff0000  ]#0099ff  Has Bought#ff0000  [#000011  SuperBullet#ff0000  ]",getRootElement(),255,0,0,true) 
    triggerClientEvent ("sumolet" ,getRootElement()) 
    elseif playerMoney <= 3000 then 
    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(l_6_0, l_6_1, l_6_2) 
    createExplosion(l_6_0, l_6_1, l_6_2, 11, source, true, false, true) 
    end 
    ) 

this is a part of a full shop but when i start the resource, the SuperBullet start not when the button clicked

Link to comment
We don't help with stolen scripts. You may wonder how do I know that, well, simple, the arguments are fu** up when you decompile a script.
l_6_0, l_6_1, l_6_2

ok how about

createExplosion(hitX, hitY, hitZ, 11, source, true, false, true) 

to be not a stolen script ..

addEvent("shonet", true) 
    addEventHandler("shonet", getRootElement(), function(hitX, hitY, hitZ) 
    createExplosion(hitX, hitY, hitZ, 11, source, true, false, true) 
    end 
    ) 

Link to comment
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

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