added more checks
This commit is contained in:
parent
8f18856e91
commit
c9c26b869c
@ -253,6 +253,7 @@ public client_death(killer,victim,wpnindex,hitplace,TK) {
|
|||||||
if ( EnemyRemaining ) {
|
if ( EnemyRemaining ) {
|
||||||
new ppl[32], pplnum
|
new ppl[32], pplnum
|
||||||
new team = get_user_team( victim ) - 1
|
new team = get_user_team( victim ) - 1
|
||||||
|
if ( team >= 0 )
|
||||||
get_players(ppl,pplnum,"e", g_teamsNames[1 - team] )
|
get_players(ppl,pplnum,"e", g_teamsNames[1 - team] )
|
||||||
if (pplnum) {
|
if (pplnum) {
|
||||||
new eppl[32], epplnum
|
new eppl[32], epplnum
|
||||||
@ -386,6 +387,7 @@ public showStatus(id) {
|
|||||||
if (g_friend[id]==1) { // friend
|
if (g_friend[id]==1) { // friend
|
||||||
new clip, ammo, wpnid = get_user_weapon(pid,clip,ammo)
|
new clip, ammo, wpnid = get_user_weapon(pid,clip,ammo)
|
||||||
new wpnname[32]
|
new wpnname[32]
|
||||||
|
if ( wpnid )
|
||||||
xmod_get_wpnname(wpnid,wpnname,31)
|
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)
|
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,
|
show_hudmessage(id,"%s -- %d HP / %d AP / %s",name,
|
||||||
|
Loading…
Reference in New Issue
Block a user