added more checks

This commit is contained in:
Lukasz Wlasinksi 2004-10-28 20:48:00 +00:00
parent 8f18856e91
commit c9c26b869c

View File

@ -253,6 +253,7 @@ public client_death(killer,victim,wpnindex,hitplace,TK) {
if ( EnemyRemaining ) {
new ppl[32], pplnum
new team = get_user_team( victim ) - 1
if ( team >= 0 )
get_players(ppl,pplnum,"e", g_teamsNames[1 - team] )
if (pplnum) {
new eppl[32], epplnum
@ -386,6 +387,7 @@ public showStatus(id) {
if (g_friend[id]==1) { // friend
new clip, ammo, wpnid = get_user_weapon(pid,clip,ammo)
new wpnname[32]
if ( wpnid )
xmod_get_wpnname(wpnid,wpnname,31)
set_hudmessage(color1,50,color2,-1.0,0.60,1, 0.01, 3.0, 0.01, 0.01, 4)
show_hudmessage(id,"%s -- %d HP / %d AP / %s",name,