Вот весь скрипт:
Code
#include <a_samp>
//СКРИПТ ПЕРЕВЕДЁН by Lil_Weezy
static gTeam[MAX_PLAYERS];
#define COLOR_BRIGHTRED 0xFF0000AA
#define COLOR_COP 0x3C26C7AA
#define TEAM_COP 4 // Change TEAM_COP with the name of cop team of your gamemode
public OnPlayerDeath(playerid, killerid, reason)
{
new oldlevel;
new newlevel;
oldlevel = GetPlayerWantedLevel(killerid);
newlevel = oldlevel + 1;
if(gTeam[killerid] != TEAM_COP) { // Change TEAM_COP with the name of cop team of your gamemode
SetPlayerWantedLevel(killerid, newlevel);
SetPlayerWantedLevel(playerid, 0);
SendClientMessage(killerid, COLOR_BRIGHTRED," Ваш уровень разыскиваемости увеличен!"); }
else if(GetPlayerWantedLevel(playerid) == 1) {
if(gTeam[killerid] == TEAM_COP){ // Change TEAM_COP with the name of cop team of your gamemode
GivePlayerMoney(killerid,1000);
SetPlayerWantedLevel(playerid, 0);
SendClientMessage(killerid, COLOR_COP," Ты ёпнул прeступника и заработал 1000$!");}
} else if(GetPlayerWantedLevel(playerid) == 2) {
if(gTeam[killerid] == TEAM_COP){ // Change TEAM_COP with the name of cop team of your gamemode
GivePlayerMoney(killerid,2000);
SetPlayerWantedLevel(playerid, 0);
SendClientMessage(killerid, COLOR_COP," Ты ёпнул прeступника и заработал 2000$!");}
} else if(GetPlayerWantedLevel(killerid) == 3) {
if(gTeam[killerid] == TEAM_COP){ // Change TEAM_COP with the name of cop team of your gamemode
GivePlayerMoney(killerid,3000);
SetPlayerWantedLevel(playerid, 0);
SendClientMessage(killerid, COLOR_COP," Ты ёпнул прeступника и заработал 3000$!");}
} else if(GetPlayerWantedLevel(killerid) == 4) {
if(gTeam[killerid] == TEAM_COP){ // Change TEAM_COP with the name of cop team of your gamemode
GivePlayerMoney(killerid,4000);
SetPlayerWantedLevel(playerid, 0);
SendClientMessage(killerid, COLOR_COP," Ты ёпнул прeступника и заработал 4000$!");}
} else if(GetPlayerWantedLevel(killerid) == 5) {
if(gTeam[killerid] == TEAM_COP){ // Change TEAM_COP with the name of cop team of your gamemode
GivePlayerMoney(killerid,5000);
SetPlayerWantedLevel(playerid, 0);
SendClientMessage(killerid, COLOR_COP," Ты ёпнул прeступника и заработал 5000$!");}
} else if(GetPlayerWantedLevel(killerid) == 6) {
if(gTeam[killerid] == TEAM_COP){ // Change TEAM_COP with the name of cop team of your gamemode
GivePlayerMoney(killerid,6000);
SetPlayerWantedLevel(playerid, 0);
SendClientMessage(killerid, COLOR_COP," Ты ёпнул прeступника и заработал 6000$!");}
}
return 1;
}