zudokuxD Posted March 14, 2016 Share Posted March 14, 2016 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
Recommended Posts