Teamkilling Problem how do i fix that????
#1

KK , i made this so like if the player who teamkilled will get reported to the admin's Chat but instead it does the player who GOT killed gets reported to the admin's chat,, now how could i fix that, so that the player who is teamkilling gets reported and not the player who got teamkilled?(This is Made For Teamkilling Only)

new string[256];
new sendername[MAX_PLAYER_NAME];
GetPlayerName(playerid, sendername, sizeof(sendername));
if (Eastteam[playerid] && Eastteam[killerid] ) // east Team Kill
{
SendClientMessage(killerid, COLOR_RED, "Do not Team Kill (-1000 Money)");
format( string, sizeof(string), "[Server]: %s Teamkilled", sendername );
SendClientMessageToAdmins(COLOR_PINK, string);
GivePlayerMoney(killerid,-1000);
return 1;
}
if (WestTeam[playerid] && WestTeam[killerid] ) // west Team Kill
{
SendClientMessage(killerid, COLOR_RED, "Do not Team Kill(-1000)");
format( string, sizeof(string), "[Server]: %s Was Teamkilling", sendername );
SendClientMessageToAdmins(COLOR_PINK, string);
GivePlayerMoney(killerid,-1000);
return 1;
}
return 1;
}
Reply


Messages In This Thread
Teamkilling Problem how do i fix that???? - by will_92 - 22.06.2009, 00:42
Re: Teamkilling Problem how do i fix that???? - by HuRRiCaNe - 22.06.2009, 00:55
Re: Teamkilling Problem how do i fix that???? - by Chaprnks - 22.06.2009, 03:09

Forum Jump:


Users browsing this thread: 1 Guest(s)