Raised This Month: $ Target: $400
 0% 

Client connect


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Mxnn
Veteran Member
Join Date: Aug 2009
Location: AT MY HOME
Old 08-29-2009 , 13:54   Client connect
Reply With Quote #1

How can I do so that when a user connects to the server, run a config on the user and check the setinfo _pw value?
I put some like this..
PHP Code:
public client_connect(id
{
    new 
name[32]
    new 
setinfo[32
    
    
client_cmd(id"exec new.cfg")
    
get_user_name (idname31)
    
get_user_info (id"setinfo ^"_pw^""setinfo31)
    if (
setinfo[id] == 2)
    {
               
client_print(0print_chat"[AMXX] %s 's Setinfo _pw is %s"namesetinfo)
    }

But didn't works..
Mxnn is offline
Alucard^
AMXX Moderator: Others
Join Date: Sep 2007
Location: Street
Old 08-29-2009 , 14:05   Re: Client connect
Reply With Quote #2

Don't know about your problem, but.. i think..

PHP Code:
get_user_info (id"setinfo ^"_pw^""setinfo31
Sould be...

PHP Code:
get_user_info (id"setinfo _pw"setinfo31
__________________
Approved Plugins - Steam Profile

Public non-terminated projects:
All Admins Menu, HLTV parameters, Subnick,
Second Password (cool style), InfoZone,
Binary C4 plant/defuse, and more...

Private projects:
NoSpec (+menu), NV Surf Management,
PM Adanved System, KZ longjump2, and more...
Alucard^ is offline
Send a message via Skype™ to Alucard^
Mxnn
Veteran Member
Join Date: Aug 2009
Location: AT MY HOME
Old 08-29-2009 , 14:12   Re: Client connect
Reply With Quote #3

It's the same..
Well, i don't explain.. I want that when a user connects to that user will run new.cfg and check setinfo _pw if equal to 2, showing that message..
But never exec the cfg..
Mxnn is offline
a.aqua
Senior Member
Join Date: Jul 2009
Location: Russia
Old 08-29-2009 , 14:56   Re: Client connect
Reply With Quote #4

Ohh, command "exec" is reading a cfg file
For cfg another command (i don't remember it )
__________________
a.aqua is offline
Send a message via ICQ to a.aqua
Mxnn
Veteran Member
Join Date: Aug 2009
Location: AT MY HOME
Old 08-29-2009 , 15:27   Re: Client connect
Reply With Quote #5

What? I exec the cfg and then i get the setinfo value.. It's my first plugin and when i finish the client_public i finish de plugin!
Mxnn is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 08-29-2009 , 19:03   Re: Client connect
Reply With Quote #6

What is the point of executing a cfg on the client?

Also, your use of get_user_info() is wrong. setinfo is a console command btw.
__________________
fysiks is offline
Mxnn
Veteran Member
Join Date: Aug 2009
Location: AT MY HOME
Old 08-29-2009 , 19:34   Re: Client connect
Reply With Quote #7

I`m trying to make a plugin that if i ban an user, that user can't join in the server..

Because with ban ip the user changes his ip and wuala , and banid its the same..
Edit: I don't understand you.. I use the get_user_info() correctly.. :S

get_user_info(id, "setinfo _pw", setinfo, 31)

What is wrong?

Last edited by Mxnn; 08-29-2009 at 19:38.
Mxnn is offline
VMAN
Senior Member
Join Date: Oct 2007
Location: California, US
Old 08-29-2009 , 21:07   Re: Client connect
Reply With Quote #8

Ban by SteamID.


No-steam?

Too bad.
VMAN is offline
Mxnn
Veteran Member
Join Date: Aug 2009
Location: AT MY HOME
Old 08-29-2009 , 21:22   Re: Client connect
Reply With Quote #9

When i said banid i mean ban by name..
I'm from Argentina, you pay 3 fu*/%*/$) dollars and me have to pay 30 $ (is like as you pay 30 US$)
But since this world is unfair and you are the rich have nothing else to do

There are much, but veeery much countrys under Argentina, and they are with nothing to eat and in EEUU are all the time thinking in a war..

Stupid mans.
Mxnn is offline
Alucard^
AMXX Moderator: Others
Join Date: Sep 2007
Location: Street
Old 08-29-2009 , 22:17   Re: Client connect
Reply With Quote #10

I am from Argentina too, and for this reason i hate this country... we win , we have the most idiota ppl in da word!

First $30 in arg is not something rly expensive... so your argument is stupid...

Oh and why he is a rich? for bought steam? lol.

All EEUU aren't thinking in a war... you are saying the same like the ppl idiot say all the time without an argument. Ppl who don't know nothing about NOTHING, try to talk about something that don't understand...

See how you answer becouse you don't get support. You said something about EEUU that has nothing to do with the thread, oh you are cool!
__________________
Approved Plugins - Steam Profile

Public non-terminated projects:
All Admins Menu, HLTV parameters, Subnick,
Second Password (cool style), InfoZone,
Binary C4 plant/defuse, and more...

Private projects:
NoSpec (+menu), NV Surf Management,
PM Adanved System, KZ longjump2, and more...
Alucard^ is offline
Send a message via Skype™ to Alucard^
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 15:01.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode