Raised This Month: $ Target: $400
 0% 

give_item


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 02-12-2007 , 20:57   Re: give_item
Reply With Quote #10

stigma: As for dividing, the result will be an integer, which probably isn't the kind of ratio you want (no decimals). But, what is the context of that code? Are you assigning it to a variable, or just running that piece by itself?

As for it getting lots of grenades, here is the start of the GunGame DeathMsg hook, it should explain it to you:
Code:
    new Float:time = get_gametime();     // a bug with valve's code (dvander said so!):     // sometimes, when using an item giving code     // (as that's where this can lead) within a message     // hook, the message hook can get called twice.     // so, if this player "dies" twice within X seconds,     // it's obviously a bugged message, so ignore.     if(time - lastDeathMsg[victim] < 0.2)         return;     lastDeathMsg[victim] = time;

Phantom Warrior: Umm... it is his full code?
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:05.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode