mirror of
https://github.com/Jackzmc/sourcemod-plugins.git
synced 2025-05-06 09:33:20 +00:00
Possibly fix tier 2 not being given
This commit is contained in:
parent
4322dc6dcb
commit
1645a59e55
2 changed files with 3 additions and 3 deletions
Binary file not shown.
|
@ -710,9 +710,9 @@ public void Frame_SetupNewClient(int client) {
|
||||||
if(IsClientConnected(i) && IsClientInGame(i) && GetClientTeam(i) == 2 && IsPlayerAlive(i)) {
|
if(IsClientConnected(i) && IsClientInGame(i) && GetClientTeam(i) == 2 && IsPlayerAlive(i)) {
|
||||||
int wpn = GetPlayerWeaponSlot(client, 0);
|
int wpn = GetPlayerWeaponSlot(client, 0);
|
||||||
if(wpn > 0) {
|
if(wpn > 0) {
|
||||||
GetEdictClassname(wpn, weaponName, sizeof(weaponName));
|
GetEntityClassname(wpn, weaponName, sizeof(weaponName));
|
||||||
for(int j = 0; j < TIER2_WEAPON_COUNT; j++) {
|
for(int j = 0; j < TIER2_WEAPON_COUNT; j++) {
|
||||||
if(StrEqual(TIER2_WEAPONS[j], weaponName[j])) {
|
if(StrEqual(TIER2_WEAPONS[j], weaponName[j][7])) {
|
||||||
tier2Weapons.PushString(weaponName);
|
tier2Weapons.PushString(weaponName);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -729,7 +729,7 @@ public void Frame_SetupNewClient(int client) {
|
||||||
|
|
||||||
if(tier2Weapons.Length > 0) {
|
if(tier2Weapons.Length > 0) {
|
||||||
tier2Weapons.GetString(GetRandomInt(0, tier2Weapons.Length), weaponName, sizeof(weaponName));
|
tier2Weapons.GetString(GetRandomInt(0, tier2Weapons.Length), weaponName, sizeof(weaponName));
|
||||||
Format(weaponName, sizeof(weaponName), "weapon_%s", weaponName);
|
// Format(weaponName, sizeof(weaponName), "weapon_%s", weaponName);
|
||||||
PrintToServer("[EPI/debug] Giving new client (%N) tier 2: %s", client, weaponName);
|
PrintToServer("[EPI/debug] Giving new client (%N) tier 2: %s", client, weaponName);
|
||||||
} else {
|
} else {
|
||||||
Format(weaponName, sizeof(weaponName), "weapon_%s", TIER1_WEAPONS[GetRandomInt(0, TIER1_WEAPON_COUNT)]);
|
Format(weaponName, sizeof(weaponName), "weapon_%s", TIER1_WEAPONS[GetRandomInt(0, TIER1_WEAPON_COUNT)]);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue