Raised This Month: $ Target: $400
 0% 

Grab+


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
zippel
Member
Join Date: Mar 2011
Location: RF
Old 04-22-2011 , 18:06   Re: Grab+
Reply With Quote #27

g, in my script...
function set_grabbed( id, target ) doesn't have

Quote:
new target_class[33]
pev(target, pev_classname, target_class, 32)
client_print(id, print_chat, "[Grab+] Grabbed %s Index: %d", target_class, target)
It's:
Quote:
//Grabs onto someone
public set_grabbed( id, target )
{
if( get_pcvar_num( p_glow ) )
{
new Float:color[3]
color[0] = get_pcvar_float( p_glow_r )
color[1] = get_pcvar_float( p_glow_g )
color[2] = get_pcvar_float( p_glow_b )
set_pev( target, pev_renderfx, kRenderFxGlowShell )
set_pev( target, pev_rendercolor, color )
set_pev( target, pev_rendermode, kRenderTransColor )
set_pev( target, pev_renderamt, get_pcvar_float( p_glow_a ) )
}

if( 0 < target <= MAXPLAYERS )
client_data[target][GRABBER] = id
client_data[id][FLAGS] = 0
client_data[id][GRABBED] = target
new Float:torig[3], Float:orig[3]
pev( target, pev_origin, torig )
pev( id, pev_origin, orig )
client_data[id][GRAB_LEN] = floatround( get_distance_f( torig, orig ) )
if( client_data[id][GRAB_LEN] < get_pcvar_num( p_min_dist ) ) client_data[id][GRAB_LEN] = get_pcvar_num( p_min_dist )
}
zippel is offline
Send a message via ICQ to zippel Send a message via Skype™ to zippel
 



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 09:49.


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