Quote:
Originally Posted by Edison1318
Wait you mean for Fake Zoey one or the icon on player tab status?
|
I meant the icon. I just saw your plugin's source and the survivor set check isn't there.
Here, there are two types of checks you can add:
Check 1:
PHP Code:
#include <left4downtown>
bool bIsL4D1Set;
public Action L4D_OnGetSurvivorSet(int &retVal)
{
if (retVal == 1)
{
bIsL4D1Set = true;
}
else
{
bIsL4D1Set = false;
}
return Plugin_Continue;
}
Check 2:
PHP Code:
bool IsL4D1Campaign()
{
char sMap[64];
GetCurrentMap(sMap, sizeof(sMap));
if (StrContains(sMap, "c7m", false) != -1 || StrContains(sMap, "c8m", false) != -1 || StrContains(sMap, "c9m", false) != -1 || StrContains(sMap, "c10m", false) != -1 || StrContains(sMap, "c11m", false) != -1 || StrContains(sMap, "c12m", false) != -1)
{
return true;
}
return false;
}