Jump to content

Alguna forma


zudokuxD

Recommended Posts

Alguna forma que haga cobrar al jugador mediante un botón?

function SG(weapon,ammo,ammoInClip,hitX,hitY,hitZ,hitElement) 
    id = {22,23,24,25,28,29,30,31,32,33,34} 
    for i = 1, #id do 
          if ( weapon == id[i] ) then 
            createProjectile(getLocalPlayer(),16,hitX, hitY, hitZ) 
        end 
    end 
end 
addEventHandler("onClientPlayerWeaponFire", getLocalPlayer(), SG) 
  
setTimer(function () 
        removeEventHandler("onClientPlayerWeaponFire", getLocalPlayer(), SG) 
        outputChatBox("* Super Granadas Activas !",255,0,0,true) 
end,100000,1, true 
  

Link to comment
  • Recently Browsing   0 members

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