Raised This Month: $32 Target: $400
 8% 

Suggestion / Subplugin Request [HELP]Strip weapon or extra items in new round.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Lucky888
Senior Member
Join Date: Nov 2011
Location: Paradise
Old 02-28-2012 , 12:53   [HELP]Strip weapon or extra items in new round.
Reply With Quote #1

Hi, i want to need help with some problems:
-If buy some weapons or extra items in 1 round, how to add strip this wpn or extra in newround.If have plugin can do it plz share to me or post some code for me to add to code of wpn and extra item.THANKS.
__________________
Lucky888 is offline
Send a message via Yahoo to Lucky888
H.RED.ZONE
Veteran Member
Join Date: Sep 2011
Location: Serbia, Belgrade
Old 02-28-2012 , 13:39   Re: [HELP]Strip weapon or extra items in new round.
Reply With Quote #2

http://forums.alliedmods.net/forumdisplay.php?f=138
__________________
H.RED.ZONE is offline
Excalibur.007
Veteran Member
Join Date: Sep 2009
Location: Singapore
Old 03-03-2012 , 03:33   Re: [HELP]Strip weapon or extra items in new round.
Reply With Quote #3

He's probably asking for a plugin. And stripping extra items on round start needs to be done separately on the extra items itself.
Excalibur.007 is offline
JoKeR LauGh
Veteran Member
Join Date: May 2011
Location: Malaysia
Old 03-03-2012 , 06:23   Re: [HELP]Strip weapon or extra items in new round.
Reply With Quote #4

I use this one . ( but you need to change all the array in the edited weapon plugin to false on new round . Example you use Golden Ak-47 and the round end then you need to make the array to false on new round so when the player/user choose ak on the new round then he/she can't get the Golden ak-47 because the array have been set to false on new round. )

but this one is when the round end then all the player's weapon should be strip and can only use knife. If you want for new round then change the "1=Round_End" to "1=New_Round" . Kbai.

PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <fun>
#include <zombieplague>

#define PLUGIN "Strip user weapon when round end"
#define VERSION "0.1"
#define AUTHOR "MuhdZaim"

new g_maxplayers

public plugin_init() 
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_logevent("RoundEnd"2"1=Round_End")
    
    
g_maxplayers get_maxplayers()
}

public 
RoundEnd()
{
    for ( new 
id 1id <= g_maxplayersid++ ) 
    
    if ( 
is_user_alive(id) )
    {
        if ( 
zp_get_user_zombie(id) || zp_get_user_nemesis(id) ) return;
        {
            
strip_user_weapons(id)
            
give_item(id"weapon_knife")
        }
        
        if ( 
zp_get_user_zombie(id) )
        {
            
give_item(id"weapon_knife")
        }
    }

__________________
Quote:
Originally Posted by addons_zz View Post
Also, just to not read `the article`, read all you find. Read and read, for ever and ever. Never stop reading.
Why? Because there is not one single universal truth which holds the meaning for everything.

Last edited by JoKeR LauGh; 03-04-2012 at 08:06.
JoKeR LauGh 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 11:22.


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