Raised This Month: $ Target: $400
 0% 

detecting client connect


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 


Thread Tools
Display Modes

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