Quote:
Originally Posted by usaexelent
The plugin doesn't work, when i write /randomknife nothing happens.
2reason2kill and dont mind him, every thing is ok if you need help witch involves this thread question then ok
|
ARe you sure you have the ban flag?
Also, I found a mistake. Fixed below:
PHP Code:
public CmdKnife( id )
{
if( !( get_user_flags( id ) & ADMIN_BAN ) ) // If they don't have BAN flag return
return PLUGIN_HANDLED;
new iPlayers[ 32 ], iNum;
get_players( iPlayers, iNum );
new iRand = random( iNum ); // Get random player
g_bCustomSkin[ iPlayers[ iRand ] ] = true; // Set the array index to true
}
__________________