Raised This Month: $ Target: $400
 0% 

How do I reset iCount


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Lawnmoverman
Member
Join Date: Jan 2017
Old 02-12-2017 , 12:53   Re: How do I reset iCount
Reply With Quote #6

Will it work like this:

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

new iCount 0

public plugin_init() 
{
    
register_plugin("noz_hudmsg","1.0","Lawnmoverman")
    
register_concmd("noz_hudmsg","noz_hudmsg",ADMIN_IMMUNITY,"noz_hudmsg - starts hud messages for players, like: scrollmsg and imessage"
}

public 
noz_hudmsg(id)  

    
set_task(60.0"DisplayMSG"id""0"b")
    return 
PLUGIN_HANDLED 



public 
DisplayMSG(id)
{
    switch(
iCount) {
        case 
0: {
        
set_dhudmessage0100200, -1.00.1516.03.00.11.5 )
        
show_dhudmessage(0"Welcome to NIGHT OVER ZERO CS 1.6 [PUB]")
        
set_dhudmessage0100200, -1.00.1816.03.00.11.5 )
        
show_dhudmessage(0"Visit www.nozgaming.eu")
        
iCount++
        }
        case 
1: {
        
set_dhudmessage2301700, -1.00.1526.03.00.11.5 )
        
show_dhudmessage(0"Add to favorites cs.nozgaming.eu")
        
set_dhudmessage2301700, -1.00.1826.03.00.11.5 )
        
show_dhudmessage(0"Visit www.nozgaming.eu")
        
iCount++
        }
        case 
2: {
        
set_dhudmessage1900210, -1.00.1516.03.00.11.5 )
        
show_dhudmessage(0"Powered by: NOZGaming.eu, OLO, KGBHosting,")
        
set_dhudmessage1900210, -1.00.1816.03.00.11.5 )
        
show_dhudmessage(0"EvoVPS, Netsons and AMX ModX")
        
iCount++
        }
        case 
3: {
        
set_dhudmessage2551450, -1.00.1526.03.00.11.5 )
        
show_dhudmessage(0"Welcome back to NIGHT OVER ZERO CS 1.6 [PUB]")
        
set_dhudmessage2551450, -1.00.1826.03.00.11.5 )
        
show_dhudmessage(0"Good luck & have fun!")
        
iCount 0
        
}
    }

Lawnmoverman 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 20:44.


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