Raised This Month: $ Target: $400
 0% 

global var ?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
AntiBots
Veteran Member
Join Date: May 2008
Location: Brazil
Old 01-10-2009 , 19:55   Re: global var ?
Reply With Quote #6

PHP Code:
#include <amxmodx>
 
new contador[33]
 
public 
client_putinserver(id)
{
         
contador[id] = 0
         set_task
(10.0"mensaje"id__"b")
}
 
public 
client_disconnect(id)
         
remove_task(id)
 
public 
mensaje(id)
{
         if( 
contador[id] <= )
         {
                  
change_task(id300.0)
         }
         else
         {
                  
contador[id]++;
         }
 
         
client_print(idprint_chat"amx_say Hi , Welcome to my server .")

__________________

Last edited by AntiBots; 01-10-2009 at 19:57. Reason: correct [php]
AntiBots is offline
Send a message via ICQ to AntiBots Send a message via MSN to AntiBots Send a message via Skype™ to AntiBots
 



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 09:10.


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