24.05.2013, 14:19
PHP код:
if(gTeam[killerid] == TEAM_COP && gTeam[playerid] != TEAM_ARMY && gTeam[playerid] != TEAM_CIA)
{
if(GetPlayerWantedLevel(playerid) < 4)
{
SendClientMessage(killerid,COLOR_RED,"[INNOCENT KILL] Do not kill innocent players .. (White/Yellow) Only shoot at Oranges and reds.");
SendClientMessage(killerid,COLOR_RED,"This is not a DM server. Please read our /rules and our /pc for a list of player colours.");
SetPlayerWantedLevel(playerid,0);
SendDeathMessage(killerid,playerid,reason);
return 1;
}
if(GetPlayerWantedLevel(playerid) >= 4 && GetPlayerWantedLevel(playerid) < 20)
{
format(string,sizeof(string),"[POLICE ACTION] Police Officer %s(%d) has taken down Wanted suspect %s(%d) by a %s",killername,killerid,pname,playerid,aWeaponNames[reason]);
SendClientMessageToAll(COLOR_DODGERBLUE,string);
SetPlayerWantedLevel(playerid,0);
SendDeathMessage(killerid,playerid,reason);
SendClientMessage(killerid,COLOR_LIGHTBLUE,"You have recieved $10000 for taking down the wanted suspect.");
GivePlayerMoney(killerid,10000);
IncreasePlayerScore(killerid,1);
PoliceSkill[killerid] ++; // This line here
return 1;
}