AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Event_StatusValue (https://forums.alliedmods.net/showthread.php?t=113916)

~Ice*shOt 12-31-2009 10:11

Event_StatusValue
 
what i can make if player is specting t, for this show Zombie stuff.
If this specting ct for this show Human stuff. I using this:
PHP Code:

public Event_StatusValue(id// Human stuff
{
    new 
target read_data(2)
      if (
target != id && target != 0)
      {
        static 
sName[32];
        
get_user_name(targetsName31)

        if (
get_user_team(id) == 2)
        {
            
set_hudmessage(2552552550.6, -1.000.06.00.00.02)
            
show_hudmessage(id"Name: %s^n Level: %i^n Rank: %s"sNamePlayerLevel[target], HumanRanks[PlayerLevel[target]])
        }
    }
}

public 
Event_StatusValue2(id// Zombie stuff
{
    new 
target read_data(2)
      if (
target != id && target != 0)
      {
        static 
sName[32];
        
get_user_name(targetsName31)

        if (
get_user_team(id) == 1)
        {
            
set_hudmessage(2552552550.6, -1.000.06.00.00.02)
            
show_hudmessage(id"Name: %s^n Level: %i^n Class: %s"sNamePlayerLevel[target], ZombieClasses[PlayerLevel[target]])
        }
    }


but this working wrong!


All times are GMT -4. The time now is 04:11.

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