08.05.2018, 21:07
Hello I wan't If the police killed a player with Wanted Level +4 Put him InJail
But It's not worked anymore why? I've trying to taken down my friend but It's sayed by OFFICER not by SWAT why?
PHP код:
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;
}