Advertisement
Guest User

Untitled

a guest
Nov 16th, 2011
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.30 KB | None | 0 0
  1. public player_status(id)
  2. {
  3.         static type, player, CsTeams:team, name[32], health
  4.         type = read_data(1)
  5.         player = read_data(2)
  6.         switch(type)
  7.         {
  8.                 case(1):
  9.                 {
  10.                         ClearSyncHud(id, g_HudSync[1][_hudsync])
  11.                 }
  12.                 case(2):
  13.                 {
  14.                         team = cs_get_user_team(player)
  15.  
  16.                         if(team != CS_TEAM_T)
  17.                                 return PLUGIN_HANDLED
  18.                         health = get_user_health(player)
  19.                         get_user_name(player, name, charsmax(name))
  20.  
  21.                         set_hudmessage(255, 0, 0, -1.0, -1.0, 2, 1.0, 9.0, 0.1, 0.1, 4)
  22.                         show_hudmessage(id, "%L", LANG_SERVER, "JBE_PRISONER_STATUS", name, health)
  23.  
  24.                         if(team != CS_TEAM_CT)
  25.                                 return PLUGIN_HANDLED
  26.                         health = get_user_health(player)
  27.                         get_user_name(player, name, charsmax(name))
  28.  
  29.                         set_hudmessage(0, 191, 255, -1.0, -1.0, 2, 1.0, 9.0, 0.1, 0.1, 4)
  30.                         show_hudmessage(id, "%L", LANG_SERVER, "JBE_GUARD_STATUS", name, health)
  31.  
  32.                 }
  33.         }
  34.        
  35.         return PLUGIN_HANDLED
  36. }
  37.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement