Raised This Month: $ Target: $400
 0% 

global var ?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
DaniDin
Member
Join Date: Oct 2008
Old 01-09-2009 , 10:46   Re: global var ?
Reply With Quote #3

i want it will say the hello 5 times (timer 10 sec) and if it over the 5 so the timer will be 300 sec
like this
PHP Code:
#include <amxmodx>
#include <amxmisc>

new Gtime 10;
new 
GTMSEC 1;
public 
plugin_init()
{
set_task(Gtime ,"HelloMSG",0,_,_,"b")
}
public 
HelloMSG(id)
{
    
server_cmd("amx_say Hi , Welcome to my server .")
GTMSEC GTMSEC +1;
if(
GTMSEC >= 5)
     
Gtime 300;

DaniDin is offline
 



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