Shows Message Two Times - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Shows Message Two Times (
/showthread.php?tid=82967)
Shows Message Two Times -
will_92 - 21.06.2009
kk well i made a Teamkill Message , but it shows twice
![Huh?](images/smilies/confused.gif)
!??,,, 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;
}
Re: Shows Message Two Times -
Chaprnks - 22.06.2009
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