| ~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(target, sName, 31)
if (get_user_team(id) == 2)
{
set_hudmessage(255, 255, 255, 0.6, -1.0, 0, 0.0, 6.0, 0.0, 0.0, 2)
show_hudmessage(id, "Name: %s^n Level: %i^n Rank: %s", sName, PlayerLevel[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(target, sName, 31)
if (get_user_team(id) == 1)
{
set_hudmessage(255, 255, 255, 0.6, -1.0, 0, 0.0, 6.0, 0.0, 0.0, 2)
show_hudmessage(id, "Name: %s^n Level: %i^n Class: %s", sName, PlayerLevel[target], ZombieClasses[PlayerLevel[target]])
}
}
}
but this working wrong!
|