Raised This Month: $ Target: $400
 0% 

Only One Weapon


Post New Thread Reply   
 
Thread Tools Display Modes
grimvh2
Veteran Member
Join Date: Nov 2007
Location: Fishdot Nation
Old 03-17-2010 , 14:22   Re: Only One Weapon
Reply With Quote #11

Block buy using :
PHP Code:
register_message(get_user_msgid("StatusIcon"), "Msg_StatusIcon"); 

public 
Msg_StatusIcon(msgidmsgdestid
{
    if(!
onlyoneweaponisactive)
        return 
PLUGIN_CONTINUE;
    
    static 
szMsg[8];
    
get_msg_arg_string(2szMsg7);
    
    if(
equal(szMsg"buyzone") && get_msg_arg_int(1)) 
    {
        
set_pdata_int(id235get_pdata_int(id235) & ~(<< 0));
        return 
PLUGIN_HANDLED;
    }
    
    return 
PLUGIN_CONTINUE;

and use ham to block weapon pickup like wrecked suggested.
__________________
I am out of order!
grimvh2 is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 03-17-2010 , 15:42   Re: Only One Weapon
Reply With Quote #12

Code:
    register_event("WeapPickup", "pickUp", "be")

This event (from plugin_init) is not implemented in the plugin..
Also, you don't prevent buy.

Again, this can't be approuved considering weapon arena plugin can do the same and more.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
g_often
Senior Member
Join Date: Jan 2010
Location: In your mind
Old 03-17-2010 , 20:03   Re: Only One Weapon
Reply With Quote #13

Nice.
__________________
Reality is wrong, dreams are for real.
g_often is offline
Brreaker
Senior Member
Join Date: Oct 2009
Location: Constanta, Romania
Old 03-18-2010 , 00:40   Re: Only One Weapon
Reply With Quote #14

Quote:
Originally Posted by ConnorMcLeod View Post
Code:
    register_event("WeapPickup", "pickUp", "be")

This event (from plugin_init) is not implemented in the plugin..
Also, you don't prevent buy.

Again, this can't be approuved considering weapon arena plugin can do the same and more.
I know, if somebody can unapprove it please
It was just a try xD
I'll come with a better plugin soon...
Thanks everybody for their help xD
Brreaker is offline
Send a message via MSN to Brreaker Send a message via Yahoo to Brreaker
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 03-18-2010 , 00:47   Re: Only One Weapon
Reply With Quote #15

Quote:
Originally Posted by ConnorMcLeod View Post
Again, this can't be approuved considering weapon arena plugin can do the same and more.
I was thinking the same thing.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
ditmesteam
Senior Member
Join Date: Oct 2009
Old 03-18-2010 , 15:56   Re: Only One Weapon
Reply With Quote #16

I play in my server, clients say: admin, I want to play awp weapon
I change all people play awp guns, people play game about 10 minutes, say: admin, we want to play normal (buy all guns)
I think you can make this for your plugin!
ditmesteam is offline
xtinct
Senior Member
Join Date: Jan 2010
Location: http://tekxtinct.ning.co
Old 03-21-2010 , 04:20   Re: Only One Weapon
Reply With Quote #17

What if I write amx_only m4a1?

Do T's will also get M4a1 instead of ak47. I think this is not possible.
__________________
Sorry If I Hurt! Orpheu

1 crab has been found and delivered my me.
xtinct is offline
V.I.P
Junior Member
Join Date: Jan 2010
Old 03-22-2010 , 20:16   Re: Only One Weapon
Reply With Quote #18

i use it in CSDM server it work good thxxx good work
V.I.P is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 04-02-2010 , 20:19   Re: Only One Weapon
Reply With Quote #19

Quote:
Originally Posted by Exolent[jNr] View Post
I was thinking the same thing.
Okay, so why didn't you unapprove it then?

This is redundant and cannot be approved. There are other plugins which do the job equally or better.

If you would like any information regarding possible adjustments you could make or things you could do to make this better, please feel free to post here or PM me.

Unapproved.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
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 14:32.


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