#1

Hi i'm making clan wars mod, i need to create that when players will be in lobby, kill list dont showing deaths/kills and when base starting kill list is showing. can someone can say how to do it?
Reply
#2

I got curious, ran some tests and this is what I made:

This will hide kill/death list for all players as long as your server is not full.
Add this where you want it to get hidden.
pawn Код:
for(new i; i < MAX_PLAYERS; i++)
{
  if(!IsPlayerConnected(i))
  {
    for(new j; j < 5; j++)
    {
      SendDeathMessage(i, i, 1);
    }
    break;
  }
}
Edit: replace
Код:
for(new i; i < MAX_PLAYERS; i++)
to
Код:
for(new i = MAX_PLAYERS-1; i >= 0; i--)
Reply
#3

pawn Код:
SendDeathMessage(i, i, 1);
should be

pawn Код:
SendDeathMessage(i, j, 1);
?
Reply
#4

Quote:
Originally Posted by lrZ^ aka LarzI
pawn Код:
SendDeathMessage(i, i, 1);
should be

pawn Код:
SendDeathMessage(i, j, 1);
?
Nope, it should be SendDeathMessage(i, i, 1);
Non-connected player kills himself, it will send empty deathmessage
Reply
#5

Oh, ok :P
My bad...
But what is the second for loop good for?
You don't use 'j' anywhere...
Reply
#6

it could as well be

Код:
SendDeathMessage(i, i, 1);
SendDeathMessage(i, i, 1);
SendDeathMessage(i, i, 1);
SendDeathMessage(i, i, 1);
SendDeathMessage(i, i, 1);
the other loop sends deathmessage 5 times
Reply
#7

oh, lol. my bad x)))
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)