Nice sharing. I learn new thing from this plugin:
PHP Code:
new g_szStrings[32];
public Function(id)
{
formatex(g_szStrings, charsmax(g_szStrings), "zmd94!")
}
public Function2(id)
{
client_print(id, print_chat, "[ZP] %s!", g_szStrings)
}
However, below code can can be optimized:
Code:
public zp_round_ended(winteam)
{
switch(winteam)
{
case WIN_ZOMBIES: ZombieScore++
case WIN_HUMANS: HumanScore++
case WIN_NO_ONE: return PLUGIN_CONTINUE; // This code is not needed as you don't do anything with it. So, just remove it. ;)
}
g_Mode = MODE_NONE;
return PLUGIN_CONTINUE;
}
-->
Code:
public zp_round_ended(winteam)
{
switch(winteam)
{
case WIN_ZOMBIES: ZombieScore++
case WIN_HUMANS: HumanScore++
}
g_Mode = MODE_NONE;
}