09.03.2011, 03:05
I was in a hurry when i posted fist post..
Here is my code:
Here is my code:
pawn Код:
public OnPlayerDeath(playerid, killerid)
{
//Some stuff over here... SendDeathMessage and other things
if(gTeam[killerid] > 6 && gTeam[playerid] > 0)
{
new string[128];
new wantedlevel = GetPlayerWantedLevel(killerid);
SetPlayerWantedLevel(killerid, wantedlevel +10);
SendClientMessage(playerid, COLOR_RED, "Murder!, You killed a cop or whatever!");
format(string, sizeof(string), "Wanted Level %i", wantedlevel);
SendClientMessage(killerid, GetPlayerColor(killerid), string);
return 1;
}
else
{
if(IsPlayerCop(killerid) || IsPlayerArmy(killerid) || IsPlayerSwat(killerid) && IsPlayerCop(playerid) || IsPlayerArmy(playerid) || IsPlayerSwat(playerid))
{
new string[128];
SendClientMessage(playerid, COLOR_ERROR, "(TEAM KILLER)");
PlayerData[killerid][TeamKills] ++;
if(PlayerData[killerid][TeamKills] == 3)
{
PlayerData[killerid][TeamKills] = 0;
Kick(killerid);
return 1;
}
}
}
return 1;
}