Raised This Month: $68 Target: $400

Random Disguise randomly doesn't disguise.

Post New Thread Reply   
Thread Tools Display Modes
Author Message
Veteran Member
Join Date: Aug 2012
Location: Computer Chair, Illinois
Old 01-11-2014 , 18:37   Random Disguise randomly doesn't disguise.
Reply With Quote #1

Randomly, it seems that this does not give the player a disguise at all. What's the problem?

PHP Code:
stock Disguise(client)
    if (
IsValidClient(client) && IsPlayerAlive(client))
disguisetarget = -1;

disguisetarget GetRandomInt(1MaxClients);
        while ((
RedAlivePlayers 0) && (!IsValidClient(disguisetargetfalse) || (disguisetarget == client)));

        if (!
disguisetarget client;

team GetClientTeam(client) == 2;

TFClassType:class = TF2_GetPlayerClass(disguisetarget);

TF2_DisguisePlayer(clientTFTeam:team, class, disguisetarget);

Chdata is offline

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -4. The time now is 18:49.

Powered by vBulletin®
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Theme made by Freecode