as you wish.
PHP код:
public OnPlayerDeath(playerid, killerid, reason)
{
new pName[MAX_PLAYER_NAME],tName[MAX_PLAYER_NAME],targetid,string[128];
if(!PoliceTeam(GetPlayerSkin(playerid)))
{
if(GetPlayerWantedLevel(playerid) == 0)
{
SetPlayerScore(killerid, GetPlayerScore(killerid)-1);
SendClientMessage(killerid, WHITE, "{FD4800}Warring: {FFFFFF}DON'T KILL innocent players! Read /pc & /rules!");
GivePlayerCash(killerid, -5000);
PlayerInfo[killerid][aKills] ++;
PlayerInfo[killerid][aDeaths] ++;
SetPlayerScore(killerid, GetPlayerScore(killerid)-1);
return 1;
}
else if(GetPlayerWantedLevel(playerid) <= 3 && GetPlayerWantedLevel(playerid)>= 1)
{
SetPlayerScore(killerid, GetPlayerScore(killerid)-1);
SendClientMessage(killerid, WHITE, "{FD4800}Warring: {FFFFFF}DON'T KILL innocent players! Read /pc & /rules!");
GivePlayerCash(killerid, -5000);
PlayerInfo[killerid][aKills] ++;
PlayerInfo[killerid][aDeaths] ++;
SetPlayerScore(killerid, GetPlayerScore(killerid)-1);
return 1;
}
else if(GetPlayerWantedLevel(playerid) <= 4 && GetPlayerWantedLevel(playerid) >= 30)
{
if(PoliceTeam(GetPlayerSkin(playerid)))
{
SetPlayerScore(killerid, GetPlayerScore(killerid)+1);
SetPlayerScore(playerid, GetPlayerScore(playerid)-1);
format(string, sizeof(string), "{E6FD00}%s[%d] has been {00E6FD}Taken Down {ffffff}by Officer %s[%d]!", tName,targetid,pName,playerid);
SendClientMessageToAll(-1,string);
format(string, sizeof(string), "~b~Taken Down ~W~%s(%d)", tName, targetid);
GameTextForPlayer(playerid, string, 7000, 5);
new Randomm = random(sizeof(RandommJailSpawns));
SetPlayerPos(targetid, RandommJailSpawns[Randomm][0], RandommJailSpawns[Randomm][1], RandommJailSpawns[Randomm][2]);
SetPlayerFacingAngle(targetid, RandommJailSpawns[Randomm][2]);
SetPlayerInterior(targetid, 3);
pJailTimerID[targetid] = SetTimerEx("pJailTimer", 1000, true, "i", targetid);
pJailCount[targetid] = 80 + random(100);
ResetPlayerWeapons(targetid);
SetPlayerColor(targetid, COLOR_WHITE);
SetPlayerWantedLevel(targetid,0);
SetPlayerHealth(targetid, 5000000);
return 1;
}
else if(SWAT(GetPlayerSkin(playerid)))
{
SetPlayerScore(killerid, GetPlayerScore(killerid)+1);
SetPlayerScore(playerid, GetPlayerScore(playerid)-1);
format(string, sizeof(string), "{E6FD00}%s[%d] has been {00E6FD}Taken Down {ffffff}by {00FFFF}S.W.A.T Special Forces {308AFF}%s(%d)!", tName,targetid,pName,playerid);
SendClientMessageToAll(-1,string);
format(string, sizeof(string), "~b~Taken Down ~W~%s(%d)", tName, targetid);
GameTextForPlayer(playerid, string, 7000, 5);
new Randomm = random(sizeof(RandommJailSpawns));
SetPlayerPos(targetid, RandommJailSpawns[Randomm][0], RandommJailSpawns[Randomm][1], RandommJailSpawns[Randomm][2]);
SetPlayerFacingAngle(targetid, RandommJailSpawns[Randomm][2]);
SetPlayerInterior(targetid, 3);
pJailTimerID[targetid] = SetTimerEx("pJailTimer", 1000, true, "i", targetid);
pJailCount[targetid] = 80 + random(100);
ResetPlayerWeapons(targetid);
SetPlayerColor(targetid, COLOR_WHITE);
SetPlayerWantedLevel(targetid,0);
SetPlayerHealth(targetid, 5000000);
return 1;
}
else if(!Army(GetPlayerSkin(playerid)))
{
SetPlayerScore(killerid, GetPlayerScore(killerid)+1);
SetPlayerScore(playerid, GetPlayerScore(playerid)-1);
format(string, sizeof(string), "{E6FD00}%s[%d] has been {00E6FD}Taken Down {ffffff}by {932EE7}San Andreas Army {308AFF}%s(%d)!", tName,targetid,pName,playerid);
SendClientMessageToAll(-1,string);
format(string, sizeof(string), "~p~Taken Down ~W~%s(%d)", tName, targetid);
GameTextForPlayer(playerid, string, 7000, 5);
new Randomm = random(sizeof(RandommJailSpawns));
SetPlayerPos(targetid, RandommJailSpawns[Randomm][0], RandommJailSpawns[Randomm][1], RandommJailSpawns[Randomm][2]);
SetPlayerFacingAngle(targetid, RandommJailSpawns[Randomm][2]);
SetPlayerInterior(targetid, 3);
pJailTimerID[targetid] = SetTimerEx("pJailTimer", 1000, true, "i", targetid);
pJailCount[targetid] = 80 + random(100);
ResetPlayerWeapons(targetid);
SetPlayerColor(targetid, COLOR_WHITE);
SetPlayerWantedLevel(targetid,0);
SetPlayerHealth(targetid, 5000000);
return 1;
}
else if(!CIA(GetPlayerSkin(playerid)))
{
SetPlayerScore(killerid, GetPlayerScore(killerid)+1);
SetPlayerScore(playerid, GetPlayerScore(playerid)-1);
format(string, sizeof(string), "{E6FD00}%s[%d] has been {00E6FD}Taken Down {ffffff}by {FFFFFF}Central Intelligence Agency {308AFF}%s(%d)!", tName,targetid,pName,playerid);
SendClientMessageToAll(-1,string);
format(string, sizeof(string), "~p~Taken Down ~W~%s(%d)", tName, targetid);
GameTextForPlayer(playerid, string, 7000, 5);
new Randomm = random(sizeof(RandommJailSpawns));
SetPlayerPos(targetid, RandommJailSpawns[Randomm][0], RandommJailSpawns[Randomm][1], RandommJailSpawns[Randomm][2]);
SetPlayerFacingAngle(targetid, RandommJailSpawns[Randomm][2]);
SetPlayerInterior(targetid, 3);
pJailTimerID[targetid] = SetTimerEx("pJailTimer", 1000, true, "i", targetid);
pJailCount[targetid] = 80 + random(100);
ResetPlayerWeapons(targetid);
SetPlayerColor(targetid, COLOR_WHITE);
SetPlayerWantedLevel(targetid,0);
SetPlayerHealth(targetid, 5000000);
return 1;
}
else if(!FBII(GetPlayerSkin(playerid)))
{
SetPlayerScore(killerid, GetPlayerScore(killerid)+1);
SetPlayerScore(playerid, GetPlayerScore(playerid)-1);
format(string, sizeof(string), "{E6FD00}%s[%d] has been {00E6FD}Taken Down {ffffff}by {308AFF}Federal Agent {308AFF}%s(%d)!", tName,targetid,pName,playerid);
SendClientMessageToAll(-1,string);
format(string, sizeof(string), "~p~Taken Down ~W~%s(%d)", tName, targetid);
GameTextForPlayer(playerid, string, 7000, 5);
new Randomm = random(sizeof(RandommJailSpawns));
SetPlayerPos(targetid, RandommJailSpawns[Randomm][0], RandommJailSpawns[Randomm][1], RandommJailSpawns[Randomm][2]);
SetPlayerFacingAngle(targetid, RandommJailSpawns[Randomm][2]);
SetPlayerInterior(targetid, 3);
pJailTimerID[targetid] = SetTimerEx("pJailTimer", 1000, true, "i", targetid);
pJailCount[targetid] = 80 + random(100);
ResetPlayerWeapons(targetid);
SetPlayerColor(targetid, COLOR_WHITE);
SetPlayerWantedLevel(targetid,0);
SetPlayerHealth(targetid, 5000000);
return 1;
}
}
}
return 1;
}