Thread: [TF2] Pets
View Single Post
RavenShadow
Junior Member
Join Date: Jan 2013
Old 07-19-2014 , 00:04   Re: [TF2] Pets
Reply With Quote #85

Ummm Hai there. I'm not sure if this was fixed already, but when i took a look at the plugin since i wanted to add it to my server.
I think adding this fixed the random spawn glitch at least from what i seen
PHP Code:
public OnClientDisconnect(client)
{
    if(
petType[client] != 0)
    {
        
KillPet(clienttrue);
    }

Though I spotted 2 weird things when I tried to test it more by giving everyone(about 12 people or more) pets
I got a array error that lagged the server a bit.when it was a high amount of people with pets.
It didnt give me that trouble with 8 people though.
The only other glitch I found was one pet was not slayed when i killed off all the pets for some reason.

Last edited by RavenShadow; 07-19-2014 at 00:06. Reason: my grammar sucks
RavenShadow is offline