Should be player not self.Code:self playLocalSound( "ammo_crate_use" );
I can see the text but I pressed F and nothing happen...
What's wrong with my code?
Code:CreateAbox(pos, angle) { box = spawn("script_model", pos ); box setModel("com_bomb_objective"); box.angles = angle; box Solid(); for(;;) { foreach(player in level.players) { if(Distance(box.origin, player.origin) <= 50) { player setLowerMessage("CPHint","Press ^3[{+activate}]^7 to refill ammo!"); if(player UseButtonPressed()) { maps\mp\killstreaks\_airdrop::refillAmmo(); self playLocalSound( "ammo_crate_use" ); } } else { player clearLowerMessage("CPHint",1); } } } wait 0.01; }
Last edited by Blubb1337; 10-08-2010 at 06:08 AM.
Should be player not self.Code:self playLocalSound( "ammo_crate_use" );
Donate:
BTC: 1GEny3y5tsYfw8E8A45upK6PKVAEcUDNv9
Handy Tools/Hacks:
Extreme Injector v3.7.3
A powerful and advanced injector in a simple GUI.
Can scramble DLLs on injection making them harder to detect and even make detected hacks work again!
Minion Since: 13th January 2011
Moderator Since: 6th May 2011
Global Moderator Since: 29th April 2012
Super User/Unknown Since: 23rd July 2013
'Game Hacking' Team Since: 30th July 2013
--My Art--
[Roxas - Pixel Art, WIP]
[Natsu - Drawn]
[Natsu - Coloured]
All drawings are coloured using Photoshop.
--Gifts--
[Kyle]
/marked as solved
OMG master.... Your fixing everything!!!