Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public player_status(id)
- {
- static type, player, CsTeams:team, name[32], health
- type = read_data(1)
- player = read_data(2)
- switch(type)
- {
- case(1):
- {
- ClearSyncHud(id, g_HudSync[1][_hudsync])
- }
- case(2):
- {
- team = cs_get_user_team(player)
- if(team != CS_TEAM_T)
- return PLUGIN_HANDLED
- health = get_user_health(player)
- get_user_name(player, name, charsmax(name))
- set_hudmessage(255, 0, 0, -1.0, -1.0, 2, 1.0, 9.0, 0.1, 0.1, 4)
- show_hudmessage(id, "%L", LANG_SERVER, "JBE_PRISONER_STATUS", name, health)
- if(team != CS_TEAM_CT)
- return PLUGIN_HANDLED
- health = get_user_health(player)
- get_user_name(player, name, charsmax(name))
- set_hudmessage(0, 191, 255, -1.0, -1.0, 2, 1.0, 9.0, 0.1, 0.1, 4)
- show_hudmessage(id, "%L", LANG_SERVER, "JBE_GUARD_STATUS", name, health)
- }
- }
- return PLUGIN_HANDLED
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement