Raised This Month: $51 Target: $400
 12% 

L4D2 How to add hint text


Post New Thread Reply   
 
Thread Tools Display Modes
JackieChan
AlliedModders Donor
Join Date: Nov 2009
Old 09-14-2013 , 01:40   Re: L4D2 How to add hint text
Reply With Quote #11

Try some of these:

PHP Code:
stock bool:IsPlayerTank(client)
{
    if (
client && IsClientInGame(client) && GetClientTeam(client) == && IsPlayerAlive(client)) //We do these checks just in case the bot is a Tank because IsValidClient would return false otherwise.
    
{
        
decl Stringclassname[32];
        
GetClientModel(clientclassnamesizeof(classname));
        if (
StrContains(classname"hulk"false) != -1)
            return 
true;
        return 
false;
    }
    return 
false;

PHP Code:
stock bool:IsValidClient(client//For detecting valid human players only
{
    if(
client && client <= MaxClients)
    {
        if (
IsClientInGame(client) && !IsFakeClient(client))
        {
            return 
true;
        }
    }
    return 
false;

Those should make things easier to work with and prevent errors.
__________________
JackieChan is offline
Bimbo1
Senior Member
Join Date: Jan 2010
Location: brazil
Old 09-14-2013 , 01:43   Re: L4D2 How to add hint text
Reply With Quote #12

lol, hulk. cool stocks.
__________________
sie sind das essen und wir sind die jäger!
Bimbo1 is offline
SilentBr
Veteran Member
Join Date: Jan 2009
Old 09-14-2013 , 17:33   Re: L4D2 How to add hint text
Reply With Quote #13

Thank you guys for helping me. Right now I don't have time to test, but later I'll test if everything is ok.

SilentBr is offline
SilentBr
Veteran Member
Join Date: Jan 2009
Old 09-14-2013 , 23:19   Re: L4D2 How to add hint text
Reply With Quote #14

Bimbo your plugin is working when change the control, still showing the HP. The problem is for some reason, we don't have the second player playing as tank. Only 1 chance and then goes to bot.
SilentBr is offline
Reply



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 00:05.


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