AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   Grab+ (https://forums.alliedmods.net/showthread.php?t=61910)

NeonSRB 04-09-2011 09:04

Re: Grab+
 
Serbian translate

Code:

[srb]
COULDNT = Igrac ne moze biti uhvacen.
ALREADY = Neko vec drzi igraca.


zippel 04-19-2011 14:30

Re: Grab+
 
What about grab weapons and some errors in client console:

Code:

Unknown command: -grab
Unknown command: -grab


Hab 04-20-2011 18:54

Re: Grab+
 
Quote:

Originally Posted by zippel (Post 1453695)
What about grab weapons

When gp_players_only is set to 0, u can grab dropped weapons :)

zippel 04-21-2011 04:10

Re: Grab+
 
Quote:

Originally Posted by Hab (Post 1454436)
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?)

Hab 04-21-2011 15:39

Re: Grab+
 
Quote:

Originally Posted by zippel (Post 1454644)
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 :crab:
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)


zippel 04-22-2011 18:06

Re: Grab+
 
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 )
}

Habetdin 04-23-2011 16:59

Re: Grab+
 
Quote:

Originally Posted by zippel (Post 1455693)
g, in my script...
function set_grabbed( id, target ) doesn't have

It's what to add for getting messages like on screen :3

NeonSRB 04-24-2011 10:12

Re: Grab+
 
Quote:

Originally Posted by Hab (Post 1454992)
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 :crab:
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)

zippel 05-22-2011 20:01

Re: Grab+
 
very nice joke-plugin, but bad that don't moves weapon :(

naXe 07-25-2011 10:05

Re: Grab+
 
Polish translation
Quote:

[pl]
COULDNT = Nie mozna zlapac tego gracza.
ALREADY = Ktos inny juz go zlapal.


All times are GMT -4. The time now is 09:20.

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