|
Member
|

02-12-2017
, 13:42
Re: How do I reset iCount
|
#8
|
Quote:
Originally Posted by edon1337
Firstly, every variable on creation is zero (0) so no need to assign zero to it.
-->
Secondly, remove amxmisc.
Thirdly, this
PHP Code:
public noz_hudmsg(id)
{
set_task(60.0, "DisplayMSG", id, "", 0, "b")
return PLUGIN_HANDLED
}
can be like this
PHP Code:
public noz_hudmsg(id)
{
set_task(60.0, "DisplayMSG", id, _, _, "b")
}
Fourly, this
PHP Code:
public DisplayMSG(id)
{
iCount++
switch(iCount) {
case 0: {
set_dhudmessage( 0, 100, 200, -1.0, 0.15, 1, 6.0, 3.0, 0.1, 1.5 )
show_dhudmessage(0, "Welcome to NIGHT OVER ZERO CS 1.6 [PUB]")
set_dhudmessage( 0, 100, 200, -1.0, 0.18, 1, 6.0, 3.0, 0.1, 1.5 )
show_dhudmessage(0, "Visit www.nozgaming.eu")
}
case 1: {
set_dhudmessage( 230, 170, 0, -1.0, 0.15, 2, 6.0, 3.0, 0.1, 1.5 )
show_dhudmessage(0, "Add to favorites cs.nozgaming.eu")
set_dhudmessage( 230, 170, 0, -1.0, 0.18, 2, 6.0, 3.0, 0.1, 1.5 )
show_dhudmessage(0, "Visit www.nozgaming.eu")
}
case 2: {
set_dhudmessage( 190, 0, 210, -1.0, 0.15, 1, 6.0, 3.0, 0.1, 1.5 )
show_dhudmessage(0, "Powered by: NOZGaming.eu, OLO, KGBHosting,")
set_dhudmessage( 190, 0, 210, -1.0, 0.18, 1, 6.0, 3.0, 0.1, 1.5 )
show_dhudmessage(0, "EvoVPS, Netsons and AMX ModX")
}
case 3: {
set_dhudmessage( 255, 145, 0, -1.0, 0.15, 2, 6.0, 3.0, 0.1, 1.5 )
show_dhudmessage(0, "Welcome back to NIGHT OVER ZERO CS 1.6 [PUB]")
set_dhudmessage( 255, 145, 0, -1.0, 0.18, 2, 6.0, 3.0, 0.1, 1.5 )
show_dhudmessage(0, "Good luck & have fun!")
iCount = 0
}
}
}
|
Solved like you said, but I changed case from 1 to 4 and not from 0 to 3 to make this work
|
|