Thread: Swap Defuser
View Single Post
Alekkkk
Member
Join Date: Mar 2012
Location: Bulgaria
Old 05-04-2012 , 12:54   Re: Swap Defuser
Reply With Quote #3

Quote:
Originally Posted by Devil259 View Post
PHP Code:
new name[18
Name max length is 32.
Fixed
Quote:
Originally Posted by Devil259 View Post
PHP Code:
cs_set_user_defuse(id,0
This is not required, since when a player die, he loses defuser.
If i remove that , the defuser would be dropped to the ground , i don't want that happend
Quote:
Originally Posted by Devil259 View Post
I would have made like that : (with Ham_Killed hooked as post)

PHP Code:
get_playersplayerscount"ae""CT" );
for( new 
0tempidcounti++ )
{
    
tempid players];
    if( !
cs_get_user_defusetempid ) )
    {
        
cs_set_user_defusetempid );

        if( 
get_pcvar_numgCvarShowMSG ) )
        {
            new 
name32 ];
            
get_user_nameidnamecharsmaxname ) );
            
client_printtempidprint_chat"%L"id"DEFUSER_MSG"name );
        }

        break;
    }

I wanted to take all CT's who don't have defuser and take random of them to give him a defuser.
Is there something wrong with my code , or you just prefer yours?
__________________
Alekkkk is offline
Send a message via Skype™ to Alekkkk