Setinfo detection

Started by Cretu
16 Jun 2009, 21:18
Page 1 of 1
16 Jun 2009, 21:18

Hello.

I have a little problem and i hope you guys help me. I think is very easy.
First off all , i posted this on alliedmods and 5 more forums with active coders and everybody ignored me , hope this doesn`t happen here.
I must say that i own A STEAM SERVER , proof is that this plugin will NOT work on non-steam clients , so .....its no use if you don`t have a steam-only server.
This plugin sets "setinfo _ban 13123" or any value .....when the player gets back on the server it checks the setinfo and if is any number from 1- infinite it kick him.
The "ban" can not be removed without telling the player "the secret".
What i want is this :


public unban
{
execclient "setinfo _ban ok"
//a function that changes the players _ban value to "ok"
}



AND THEN



public verification
{
if "setinfo _ban" = OK leave him alone

ELSE DO THIS :
static szBanTime[11], iBanTime;
get_user_info( id , gBanKey , szBanTime , 10 );

iBanTime = str_to_num( szBanTime );

if( ( iBanTime == 1 ) || ( get_systime() < iBanTime ) )
server_cmd( "kick #%d ^"Banned!^"" , get_user_userid( id ) );
}
}



Hope you understand what i mean .

Thank you

16 Jun 2009, 21:25

dont get it but nice =)

16 Jun 2009, 21:53

Well . i'm sure there aren't many coders on XJ. Allied modders will help you more then XJ. If they ignored you just ... try harder xD. Exolent helped me with about 10 plugins ,heh.

16 Jun 2009, 22:05

Originally posted by Makkesk8
dont get it but nice =)


He is asking for help.
If you dont know nothing about coding just dont post. Or atleast read the text he wrote.

16 Jun 2009, 22:21

http://www.amxmodx.org/funcwiki.php?search=user_info&go=search

tbh, i dont like to answer question which are very easy to answer (like this one). also i dont have the time to answer everybody here.

17 Jun 2009, 10:26

i know how to do this SchlumPF ......i don`t know how to do the entire function code.
I was asking for the whole code , not just setinfo detection.

17 Jun 2009, 13:23

check in client_connect() whetehr the info and kickh im if the player has a special info and create some clcmd to change the info, i wont create such a plugin or write a entire function for you.

Page 1 of 1

Reply

Please log in to post replies.