|
Senior Member
Join Date: Nov 2015
Location: Peaceful place of the internet
|
08-04-2017
, 11:41
Re: [L4D2] All 8 L4D2 and L4D1 Survivors For Windows
|
#25
|
Quote:
Originally Posted by cravenge
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; }
|
So you want me to add the survivor set detector on my plugin ExtraZoeyFixes?
__________________
EdisonGar
Last edited by Edison1318; 08-04-2017 at 11:51.
Reason: Politely
|
|
|
|