07.08.2012, 12:29
i have made an auto jail for noob cops that keep on killing innocents so when they kill an innocent they automatically go to jail but the problem is that when i am a cop and i kill an innocent i go to jail [thats norrmal] but when i m a normal civilian and i get killed by a cop i am the one who goes to jail as if the whole auto jail thing is made on me :S
code is :
help = rep ++
code is :
Код:
if(gTeam[killerid] == TEAM_COP && gTeam[playerid] != TEAM_ARMY && gTeam[playerid] != TEAM_CIA) { new ID; if(GetPlayerWantedLevel(playerid) < 2) { SendClientMessage(killerid,COLOR_RED,"[INNOCENT KILL] Do not kill innocent players .. (White/Yellow) Only shoot at Oranges and reds."); SendClientMessage(killerid,COLOR_RED,". Please read our /rules and our /pc for a list of player colours."); format(string,sizeof(string),"{33CCFF}[AUTO JAIL] {FFFFFF}%s(%d) has been sent to jail for 200 seconds {00FF00}[REASON: Killing Innocents]",PlayerName(ID),ID); SendClientMessageToAll(COLOR_DODGERBLUE,string); TextDrawShowForPlayer(ID,JailTimer[ID]); ResetPlayerWeapons(ID); new rnd = random(sizeof(JailSpawnPoints)); JailTime[ID] =200; IsCuffed[ID] =0; CuffTime[ID] =0; TotalJailTime[ID] =200; SetPlayerInterior(ID,10); SetPlayerPos(ID,JailSpawnPoints[rnd][0],JailSpawnPoints[rnd][1],JailSpawnPoints[rnd][2]); SetPlayerFacingAngle(ID,JailSpawnPoints[rnd][3]); TogglePlayerControllable(ID,1); StopLoopingAnim(ID); SetPlayerWantedLevel(ID,0); SetPlayerToTeamColour(ID); SetPlayerWantedLevel(playerid,0); SendDeathMessage(killerid,playerid,reason); return 1; }
