Raised This Month: $ Target: $400
 0% 

Noob question for roundstart event


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
winds
Member
Join Date: Aug 2010
Old 11-11-2011 , 13:25   Noob question for roundstart event
Reply With Quote #1

I have a really noob question that I can't figure out the answer for. In the code below I am trying to strip every player in the server and give them all a knife at the beginning of a round if specialday is 1. As I have it now in the code, it only gives it to the admin that made the round but no one else. How would I make it strip and give a knife to everyone?
Thanks!

PHP Code:
public logevent_round_start()
{
    static 
iMaxPlayers;
    if ( !
iMaxPlayers )
        
iMaxPlayers get_maxplayers();

    for(new 
id 1id <= get_maxplayers(); id++) 
    {
        if ( 
SpecialDay == )
        {
            
strip_user_weapons(id);
            
give_item(id"weapon_knife")
            
set_hudmessage();
            
show_hudmessage(0"This is a knife only round");
            
SpecialDay 0
        

winds is offline
 



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:20.


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