Raised This Month: $ Target: $400
 0% 

Grab+


Post New Thread Reply   
 
Thread Tools Display Modes
NeonSRB
Junior Member
Join Date: Feb 2011
Location: Serbia, Belgrade
Old 04-09-2011 , 09:04   Re: Grab+
Reply With Quote #131

Serbian translate

Code:
[srb]
COULDNT = Igrac ne moze biti uhvacen.
ALREADY = Neko vec drzi igraca.
__________________
Be yourself... ;)
NeonSRB is offline
Send a message via MSN to NeonSRB
zippel
Member
Join Date: Mar 2011
Location: RF
Old 04-19-2011 , 14:30   Re: Grab+
Reply With Quote #132

What about grab weapons and some errors in client console:

Code:
Unknown command: -grab
Unknown command: -grab
zippel is offline
Send a message via ICQ to zippel Send a message via Skype™ to zippel
Hab
Junior Member
Join Date: Nov 2009
Old 04-20-2011 , 18:54   Re: Grab+
Reply With Quote #133

Quote:
Originally Posted by zippel View Post
What about grab weapons
When gp_players_only is set to 0, u can grab dropped weapons
Hab is offline
zippel
Member
Join Date: Mar 2011
Location: RF
Old 04-21-2011 , 04:10   Re: Grab+
Reply With Quote #134

Quote:
Originally Posted by Hab View Post
When gp_players_only is set to 0, u can grab dropped weapons
hmmm. I checked with zero - no wp grab (

How fix this error -grab (unknown command / return plugin H / but where?)
zippel is offline
Send a message via ICQ to zippel Send a message via Skype™ to zippel
Hab
Junior Member
Join Date: Nov 2009
Old 04-21-2011 , 15:39   Re: Grab+
Reply With Quote #135

Quote:
Originally Posted by zippel View Post
hmmm. I checked with zero - no wp grab (

How fix this error -grab (unknown command / return plugin H / but where?)
Change:
Code:
	register_clcmd( "-grab", "unset_grabbed" )
to
Code:
	register_clcmd( "-grab", "unset_grabbed_cmd" )
And add this:
Code:
public unset_grabbed_cmd(id)
{
	unset_grabbed(id)
	return PLUGIN_HANDLED
}
Hmm, I can grab weapons: screens
P.S.: Messages on screens
Code:
public set_grabbed( id, target )
{
	new target_class[33]
	pev(target, pev_classname, target_class, 32)
	client_print(id, print_chat, "[Grab+] Grabbed %s Index: %d", target_class, target)
Hab is offline
zippel
Member
Join Date: Mar 2011
Location: RF
Old 04-22-2011 , 18:06   Re: Grab+
Reply With Quote #136

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
Habetdin
New Member
Join Date: Jul 2010
Old 04-23-2011 , 16:59   Re: Grab+
Reply With Quote #137

Quote:
Originally Posted by zippel View Post
g, in my script...
function set_grabbed( id, target ) doesn't have
It's what to add for getting messages like on screen
Habetdin is offline
NeonSRB
Junior Member
Join Date: Feb 2011
Location: Serbia, Belgrade
Old 04-24-2011 , 10:12   Re: Grab+
Reply With Quote #138

Quote:
Originally Posted by Hab View Post
Change:
Code:
    register_clcmd( "-grab", "unset_grabbed" )
to
Code:
    register_clcmd( "-grab", "unset_grabbed_cmd" )
And add this:
Code:
public unset_grabbed_cmd(id)
{
    unset_grabbed(id)
    return PLUGIN_HANDLED
}
Hmm, I can grab weapons: screens
P.S.: Messages on screens
Code:
public set_grabbed( id, target )
{
    new target_class[33]
    pev(target, pev_classname, target_class, 32)
    client_print(id, print_chat, "[Grab+] Grabbed %s Index: %d", target_class, target)
Can you post the updated sma file? (with your changes)
__________________
Be yourself... ;)
NeonSRB is offline
Send a message via MSN to NeonSRB
zippel
Member
Join Date: Mar 2011
Location: RF
Old 05-22-2011 , 20:01   Re: Grab+
Reply With Quote #139

very nice joke-plugin, but bad that don't moves weapon
zippel is offline
Send a message via ICQ to zippel Send a message via Skype™ to zippel
naXe
BANNED
Join Date: May 2009
Location: Poland/Kwidzyn
Old 07-25-2011 , 10:05   Re: Grab+
Reply With Quote #140

Polish translation
Quote:
[pl]
COULDNT = Nie mozna zlapac tego gracza.
ALREADY = Ktos inny juz go zlapal.
naXe is offline
Send a message via AIM to naXe
Reply



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