View Single Post
Author Message
Anna
New Member
Join Date: Jan 2019
Old 01-14-2019 , 12:16   [CS:GO] ZR Hotfix set zm default class
Reply With Quote #1

Hey,

I'm using ZR Hotfix plugin because players don't get zombie class when infected.
I have verified with command "zr_class_dump player XX" to debug and I have tryed to refresh with "zr_class_reload XX" but still refreshing the actual class, zombie with human class refresh human class.

The ZR Hotfix plugin only sets an amount of HP & defined skin but doesn't set all config that the class had, like knockback, jump height and all the other config linked to the class. Is it possible to have something like:

Code:
public ZR_OnClientInfected(client, attacker, bool:motherInfect, bool:respawnOverride, bool:respawn)
{
	new vida = GetClientHealth(client);
	if(vida < 300)
	{
		SetClass(client, zr_classes_default_zombie);
	}
}
I know that this code can't work but is it possible to do something like that ?

Edit: I use ZR Franug edition ; I have zero errors in the logs

Last edited by Anna; 01-14-2019 at 12:39. Reason: add plugin info
Anna is offline