Raised This Month: $ Target: $400
 0% 

Subplugin Submission [ZP] Game Stats Hud Information.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 12-18-2014 , 08:13   Re: [ZP] Game Stats Hud Information.
Reply With Quote #5

Nice sharing. I learn new thing from this plugin:
PHP Code:
new g_szStrings[32];

public Function(
id)
{
    
formatex(g_szStringscharsmax(g_szStrings), "zmd94!")
}

public 
Function2(id)
{
    
client_print(idprint_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;
}

Last edited by zmd94; 12-18-2014 at 08:14.
zmd94 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 15:02.


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