Author Topic: missing function squirrel  (Read 2433 times)

0 Members and 1 Guest are viewing this topic.

Offline Castagna

  • VC:MP Beta Tester
  • Made Man
  • *
  • Posts: 129
  • Global Moderator
    • View Profile
missing function squirrel
« 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  ;)





                         
Castagna - EA Founder


Offline Scripter

  • Wiseguy
  • **
  • Posts: 62
    • View Profile
Re: missing function squirrel
« Reply #1 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/
« Last Edit: May 29, 2011, 08:45:17 am by Scripter »

Offline Castagna

  • VC:MP Beta Tester
  • Made Man
  • *
  • Posts: 129
  • Global Moderator
    • View Profile
Re: missing function squirrel
« Reply #2 on: May 29, 2011, 06:38:21 pm »
ok thanks !
didn't work ... because I need that function
« Last Edit: May 30, 2011, 08:25:32 am by StriKe »
Castagna - EA Founder


Offline Castagna

  • VC:MP Beta Tester
  • Made Man
  • *
  • Posts: 129
  • Global Moderator
    • View Profile
Re: missing function squirrel
« Reply #3 on: May 29, 2011, 07:45:21 pm »
didn't work ... because I need that function
Castagna - EA Founder