View Single Post
Lebson506th
Veteran Member
Join Date: Jul 2008
Old 07-16-2008 , 09:36   Re: [DoDS] Medic Class UPDATED July 15, 2008
Reply With Quote #14

I changed the "Who" function to say if there are no medics on your team.

Code:
public Action:Who(client, args)
{
    new team = GetClientTeam(client)
    new ctr = 0
    
    for (new i = 1; i <= GetConVarInt(g_Cvar_MedicMax); i++)
    {
        if (g_medic_master[team][i] != 0)
        {
            new String:playerName[128]
            GetClientName(g_medic_master[team][i], playerName, sizeof(playerName))
            PrintToChat(client, "Medic #%i: %s", i, playerName)
            ctr++
        }
    }

    if(ctr == 0)
    {
        PrintToChat(client, "[SM] There are no medics on your team")
    }

    return Plugin_Handled
}
Lebson506th is offline