Quote:
Originally Posted by CrAzY MaN
Why don't you use cs_set_user_team?
|
Right, this is my old code that's just long and I do not have the power to change everything to cs_set_user_team
But one day I will.
Quote:
Originally Posted by maqi
Smiley asked you to post the whole code, whats the point of bumping without doing so?
|
There is no full code here is just example, I'm trying to ask how an option to block something that has a NATIVE ...
If you want to block someone from transferring to CT
This is my NATIVE:
if (jb_is_user_banned (player))
And the player is still passing ... Maybe I should
if (! (jb_is_user_banned (player))
PHP Code:
new NameSz[ 32 ], player;
case CT_TRANSFER:
{
if ( !( get_user_flags( player ) & ADMIN_IMMUNITY ) || player == client )
{
if ( jb_is_user_banned( player ))
{
ColorChat( player, "debug: Testing a player");
return PLUGIN_HANDLED;
}
fm_set_user_team( player, FM_TEAM_CT );
fm_DispatchSpawn( player );
ColorChat( 0, "%s ^3%s^1 has used^4 Counter-Terrorist Transfer^1 command.", Gisha[AdminMyAccess[client]],NameSz)
}