Raised This Month: $ Target: $400
 0% 

detecting client connect


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
haimmaik
Senior Member
Join Date: Jul 2005
Old 07-05-2006 , 14:05   detecting client connect
Reply With Quote #1

the command:

public client_connect(id){...

doesnt work..
note: client_disconnect(id){ works alright..

here is my code:

Code:
public plugin_init() {  register_plugin(PLUGIN, VERSION, AUTHOR)  register_cvar("rankingmode", "1") }   public loaddata(id){  new authid[32]  get_user_authid(id,authid,31)    new vaultkey[64],vaultdata[64]  //load kills  format(vaultkey,63,"kills-%s",authid)  get_vaultdata(vaultkey,vaultdata,63)  kills[id] = str_to_num(vaultdata)  //load deaths  format(vaultkey,63,"deaths-%s",authid)  get_vaultdata(vaultkey,vaultdata,63)  deaths[id] = str_to_num(vaultdata)  //load rank  format(vaultkey,63,"ranks-%s",authid)  get_vaultdata(vaultkey,vaultdata,63)  ranks[id] = str_to_num(vaultdata) }   public client_connect(id){  if(get_cvar_num("rankingmode") == 1){   loaddata(id)  } }
haimmaik is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 07-05-2006 , 14:23   Re: detecting client connect
Reply With Quote #2

authid isn't actually gathered until client_authorized. I'd use either that or client_putinserver.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
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 08:02.


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