|
SourceMod Donor
|
04-15-2013
, 19:00
Re: [CS:S] Flashbang Tools
|
#19
|
Quote:
Originally Posted by TnTSCS
am I doing something wrong? with the below code, using the flashtools-0.0.4, I get errors.
code
PHP Code:
#include <sourcemod>
#include <flashtools>
public Action:OnGetPercentageOfFlashForPlayer(client, entity, Float:pos[3], &Float:percent)
{
new owner = GetEntPropEnt(entity, Prop_Send, "m_hOwnerEntity");
// Had to add this check because sometimes client -1 is passed.
if (owner <= 0 || owner > MaxClients)
return Plugin_Continue;
PrintToChatAll("%N's flashbang flashed %N by %f percent", owner, client, percent);
return Plugin_Continue;
}
I would expect something like 50% or 87.62% or something - maybe I'm missing something or messed something up.
|
Quote:
Originally Posted by Dr!fter
I have no clue how the percent for OnGetPercentageOfFlashForPlayer works. I tried changing it and couldn't notice any changes (its been awhile since i tried) but you can try it
|
__________________
Need help? PM me or add me on Steam.
My Steam
Quote:
Originally Posted by Rp.KryptoNite
For some reason his Plugin never worked for me ,
@credits were added
im not stealing any plugins dude its my THING
|
|
|
|
|