Raised This Month: $ Target: $400
 0% 

global var ?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Spunky
Senior Member
Join Date: May 2008
Location: Orlando, Fl.
Old 01-09-2009 , 23:30   Re: global var ?
Reply With Quote #5

PHP Code:
#include <amxmodx>
#include <amxmisc>

new g_iCount

public plugin_init()
{
    
set_task(100.0"fnHello"1337__"b")
}

public 
fnHello()
{
    
server_cmd("amx_say Hi, welcome to my server.")

    if (
g_iCount 5)
        
g_iCount++
    else
        
remove_task(13370)

    return 
PLUGIN_HANDLED


Last edited by Spunky; 01-10-2009 at 00:12.
Spunky is offline
Send a message via AIM to Spunky
 



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