Vice City Multiplayer

VC:MP 0.3 => mIRC/pawn Scripting => Topic started by: Castagna on May 28, 2011, 10:44:54 pm

Title: missing function squirrel
Post by: Castagna on May 28, 2011, 10:44:54 pm
 Hi , i was looking for a missing function for the command /c ban . The cmd is complete, but when u ban someone , them when the banned player re join the server , didn't kick him (autokick - reason - banned account) . So need the function IsBanned( player ) for this :

 
Code: [Select]
function onPlayerJoin( player )
{
if ( IsBanned( player ) == 1 ) Kick( player, "auto", "Banned account" );

 }

I need this function for squirrel with Hash  :-\
                                                                                               Thx  ;)





                         
Title: Re: missing function squirrel
Post by: Scripter on May 29, 2011, 08:41:43 am
Quote
function onPlayerJoin( player )
{
if ( IsBanned( player ) == 1 ) Kick( player, "auto", "Banned account" );
KickPlayer( plr );

 }
if not works then
post in squirrel forum
http://vcmp.liberty-unleashed.co.uk/forum/
Title: Re: missing function squirrel
Post by: Castagna on May 29, 2011, 06:38:21 pm
ok thanks !
didn't work ... because I need that function
Title: Re: missing function squirrel
Post by: Castagna on May 29, 2011, 07:45:21 pm
didn't work ... because I need that function