Raised This Month: $51 Target: $400
 12% 

[HELP] plugin can't terro take guns on Earth


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
spooky HL15
Member
Join Date: Oct 2015
Old 06-03-2017 , 20:47   [HELP] plugin can't terro take guns on Earth
Reply With Quote #1

HI سلام
i need to help
i need to plugin for make
terro can't take guns on Earth

Last edited by spooky HL15; 06-03-2017 at 20:55.
spooky HL15 is offline
DjSoftero
Veteran Member
Join Date: Nov 2014
Location: Lithuania
Old 06-04-2017 , 01:53   Re: [HELP] plugin can't terro take guns on Earth
Reply With Quote #2

hello, here you go.
link for original code:
https://forums.alliedmods.net/showthread.php?t=270066
your code:
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <engine>

public plugin_init() {
    
register_plugin("block pickup for t""1.0""amxx community")
    
    
register_touch("weaponbox""player""BlockPickup")//guns
        
register_touch("armoury_entity""player""BlockPickup")//armor
        
register_touch("weapon_shield""player""BlockPickup")//shield
}

public 
BlockPickup(EntityClient)
        return (
is_user_connected(Client) && get_user_team(Client) == 1) ? PLUGIN_HANDLED PLUGIN_CONTINUE 
dunno if is_user_connected() was necessary, but better be safe than sorry. Correct me if i`m wrong.

Last edited by DjSoftero; 06-04-2017 at 01:56. Reason: typo
DjSoftero is offline
Craxor
Veteran Member
Join Date: Jan 2016
Location: Romania
Old 06-04-2017 , 11:25   Re: [HELP] plugin can't terro take guns on Earth
Reply With Quote #3

Quote:
Originally Posted by spooky HL15 View Post
HI سلام
i need to help
i need to plugin for make
terro can't take guns on Earth
what the fuck, did you smoke weed ?

EDIT: Also i see you shared with DjSoftero, amazing life.
__________________
Project: Among Us

Last edited by Craxor; 06-04-2017 at 11:26.
Craxor is offline
Send a message via ICQ to Craxor
DjSoftero
Veteran Member
Join Date: Nov 2014
Location: Lithuania
Old 06-04-2017 , 13:07   Re: [HELP] plugin can't terro take guns on Earth
Reply With Quote #4

Quote:
terro can't take guns on Earth
not too difficult 2 understand a m8

Last edited by DjSoftero; 06-04-2017 at 13:08.
DjSoftero is offline
spooky HL15
Member
Join Date: Oct 2015
Old 06-04-2017 , 14:39   Re: [HELP] plugin can't terro take guns on Earth
Reply With Quote #5

Quote:
Originally Posted by Craxor View Post
what the fuck, did you smoke weed ?

EDIT: Also i see you shared with DjSoftero, amazing life.
Do you have a goal in your life other than observing people
spooky HL15 is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 06-04-2017 , 15:09   Re: [HELP] plugin can't terro take guns on Earth
Reply With Quote #6

Oh, you found out the google translate, Gj m8
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx is offline
Craxor
Veteran Member
Join Date: Jan 2016
Location: Romania
Old 06-04-2017 , 15:57   Re: [HELP] plugin can't terro take guns on Earth
Reply With Quote #7

Yeaps, observing and analyze is my passion

Here you go:
PHP Code:
#include <amxmodx>
#include <fakemeta>
#include <engine>
#include <cstrike>

public plugin_init( )
{
    new const 
CPlayer[] = "player";
 
    
register_touch"weaponbox"CPlayer"Touch_EV" );
    
register_touch"armoury_entity"CPlayer"Touch_EV" );
    
register_touch"weapon_shield"CPlayer"Touch_EV" );
}

public 
Touch_EVentid )
{
    if( !
pev_valid(ent) || !is_user_alive(id) )
    {
        return 
PLUGIN_HANDLED;
    }

    if( 
cs_get_user_team(id) == CS_TEAM_T )
    {
        return 
PLUGIN_HANDLED;
    }

    return 
PLUGIN_CONTINUE;

Some modification of the original source of DjSoftero, but i think i would update my CS pick up manager with team's management.
__________________
Project: Among Us

Last edited by Craxor; 06-04-2017 at 15:58.
Craxor is offline
Send a message via ICQ to Craxor
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 06-04-2017 , 16:38   Re: [HELP] plugin can't terro take guns on Earth
Reply With Quote #8

PHP Code:
return ((pev_valid(ent)) && (cs_get_user_team(id) == CS_TEAM_T)  && (is_user_alive(id))) ? PLUGIN_CONTINUE PLUGIN_HANDLED 
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx is offline
Craxor
Veteran Member
Join Date: Jan 2016
Location: Romania
Old 06-04-2017 , 16:52   Re: [HELP] plugin can't terro take guns on Earth
Reply With Quote #9

same thing, i've just made it more easy to read for others but will work also in your way.
__________________
Project: Among Us
Craxor is offline
Send a message via ICQ to Craxor
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 06-04-2017 , 16:55   Re: [HELP] plugin can't terro take guns on Earth
Reply With Quote #10

Yep, IK.
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx is offline
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 13:46.


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