25.04.2016, 23:41
I don't know what is the problem, death messages are not dissapearing when i want them to, code:
Showing up:
foreach(Player, i)
{
if(PlayerInWar[i] == 1)
{
SendDeathMessageToPlayer(i, killerid, playerid, reason);
}
}
and it's ok, it does show them, but it doesn't hide them
Showing up:
foreach(Player, i)
{
if(PlayerInWar[i] == 1)
{
SendDeathMessageToPlayer(i, killerid, playerid, reason);
}
}
and it's ok, it does show them, but it doesn't hide them
pawn Код:
foreach(Player, i)
{
if(PlayerInWar[i] == 1)
{
TextDrawHideForPlayer(i, WarTD0[i]);
TextDrawHideForPlayer(i, WarTD1[i]);
TextDrawHideForPlayer(i, WarTD2[i]);
TextDrawHideForPlayer(i, WarTD3[i]);
for ( new num; num > 20; num++ )
{
SendDeathMessageToPlayer(i, 1001, 1001, 200);
}
PlayerInWar[i] = 0;
}
}