Quote:
Originally Posted by egor1908
1. This kill-spawn breakes finales.
2. Make your plugin compartible with KAC, please, just do anything else then using commands flagged as cheats.
UPD: I tried this plugin and now removed it.
1. I spawned as a tank. When i lose control i type /dt egor, and the tank becomes a bot.
2. I respawn as a hunter, and type /tt Tank, and tank just disappears.
Failure.
|
This plugin does not ever KILL a tank. It kicks the original tank and replaces it with a new one. Now I understand that this does mess with the finale, but there isn't really anything I can do about that, unless I restrict donating, or even admin takeover of the tank during a finale.
I would think that it would be compatible due to the fact that I remove the cheat flags and give root admin to the client thats picked to spawn the tank. If it still isn't, you're outta luck because z_spawn is the only way to take control of an infected.
1. Thats because you lost the tank. You can't donate a tank once you lost it.
2. Was it versus? Versus has a 3 time tank switching restriction limit. if the tank is frustrated three times, it will disappear.
@AtomicStryker
Code:
public Action:Event_PlayerSpawn(Handle:event, const String:name[], bool:dontBroadcast)
{
// Don't bother going into this if the server does not wish to display the message
if (!Message) return Plugin_Continue;
// We get the client id and time
new client = GetClientOfUserId(GetEventInt(event, "userid"));
// If client is valid
if (client == 0) return Plugin_Continue;
if (!IsClientConnected(client)) return Plugin_Continue;
if (!IsClientInGame(client)) return Plugin_Continue;
if (IsFakeClient(client)) return Plugin_Continue;
// If player spawned on infected's team ...
if (GetClientTeam(client)==3)
{
decl String:class[100];
// we get the classtype ...
GetClientModel(client, class, sizeof(class));
if (StrContains(class, "hulk", false) != -1)
{
CreateTimer(0.1, MessageTimer, client)
}
}
return Plugin_Continue;
}
You must have missed that part Atomic.