Shows Message Two Times
#1

kk well i made a Teamkill Message , but it shows twice !??,,, how do i make it show it once/,,



if (Eastteam[playerid] == Eastteam[killerid] ) // east Team Kill
{
SendClientMessage(killerid, COLOR_RED, "Do not Team Kill (-1000 Money) - 3 team kills gets you Kicked!");
GivePlayerMoney(killerid,-1000);
PlayerInfo[killerid][pTKills] += 1;
}
if (WestTeam[playerid] == WestTeam[killerid] ) // west Team Kill
{
SendClientMessage(killerid, COLOR_RED, "Do not Team Kill (-1000 Money) - 3 team kills gets you Kicked!");
GivePlayerMoney(killerid,-1000);
PlayerInfo[killerid][pTKills] += 1;
return false;
}
if (PlayerInfo[playerid][pTKills] >= 3) // Kicked
{
SendClientMessage(killerid, COLOR_RED, "You team killed 3 times, you are now kicked");
PlayerInfo[killerid][pTKills] = 0;
Kick(playerid);
}
return 1;
}
Reply
#2

Both will return true cause if the players Eastteam is for example 255 for not being in that team it will be the same for the other.

pawn Код:
if (Eastteam[playerid] == Eastteam[killerid] && Eastteam[playerid] != (Your set value for not being in the team)) // east Team Kill
Reply


Forum Jump:


Users browsing this thread: