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

Drop all weapons and items after round ends


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
BaltaZar_Serbia
Senior Member
Join Date: Dec 2011
Location: Serbia
Old 08-06-2014 , 13:57   Drop all weapons and items after round ends
Reply With Quote #1

hey, i need plugin that drops all weapons and extra items so the items can't be used 2 rounds in a row, so 1 item 1 round

zp 5.0.8a
BaltaZar_Serbia is offline
Send a message via Yahoo to BaltaZar_Serbia
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 08-06-2014 , 22:10   Re: Drop all weapons and items after round ends
Reply With Quote #2

You can try this:
PHP Code:
#include <amxmodx>
#include <cstrike>
#include <hamsandwich>

new g_maxplayers

public plugin_init() 
{
    
register_plugin(Strip Weapon1.0zmd94)
    
RegisterHam(Ham_Spawn,"player","playerSpawn"1);
    
    
g_maxplayers get_maxplayers()
}

public 
playerSpawn(id)
{
    if( 
is_user_alive(id))
    
    for (
id 1id <= g_maxplayersid ++)
    {
        
strip_user_weapons(id)
    }

zmd94 is offline
wicho
Veteran Member
Join Date: Feb 2012
Location: GuateAmala
Old 08-06-2014 , 22:58   Re: Drop all weapons and items after round ends
Reply With Quote #3

https://forums.alliedmods.net/showthread.php?t=213275
wicho is offline
BaltaZar_Serbia
Senior Member
Join Date: Dec 2011
Location: Serbia
Old 08-07-2014 , 10:25   Re: Drop all weapons and items after round ends
Reply With Quote #4

thanks, it work
BaltaZar_Serbia is offline
Send a message via Yahoo to BaltaZar_Serbia
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 08-07-2014 , 10:40   Re: Drop all weapons and items after round ends
Reply With Quote #5

Quote:
Originally Posted by Baltazar_Serbia
Thanks, it works.
May you tell which one?
zmd94 is offline
BaltaZar_Serbia
Senior Member
Join Date: Dec 2011
Location: Serbia
Old 08-07-2014 , 12:43   Re: Drop all weapons and items after round ends
Reply With Quote #6

from wicho, i did not try your code, but if u want i can test it for u

Last edited by BaltaZar_Serbia; 08-07-2014 at 12:43.
BaltaZar_Serbia is offline
Send a message via Yahoo to BaltaZar_Serbia
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 08-07-2014 , 14:56   Re: Drop all weapons and items after round ends
Reply With Quote #7

Quote:
Originally Posted by BaltaZar_Serbia View Post
from wicho, I did not try your code, but if you want I can test it for you.
Nevermind, just use the code given by wicho. ;)
zmd94 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 22:36.


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