Quote:
Originally Posted by Devil259
|
Fixed
Quote:
Originally Posted by Devil259
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
I would have made like that : (with Ham_Killed hooked as post)
PHP Code:
get_players( players, count, "ae", "CT" );
for( new i = 0, tempid; i < count; i++ )
{
tempid = players[ i ];
if( !cs_get_user_defuse( tempid ) )
{
cs_set_user_defuse( tempid );
if( get_pcvar_num( gCvarShowMSG ) )
{
new name[ 32 ];
get_user_name( id, name, charsmax( name ) );
client_print( tempid, print_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?
__________________