fdm help - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: fdm help (
/showthread.php?tid=555434)
fdm help -
Rabea - 07.01.2015
okey, if a cop kills someone he will be criminal as Murder, i'm trying to do it, but it won't work.
cop thing:
pawn Код:
if(IsACop[killerid] == playerid)
and here one somone kill someone
pawn Код:
new playerb;
format(string, sizeof(string), "OnPlayerDeath: %s has killed %s using %s.", NORPN(killerid), NORPN(playerid), RWN(reason));
SendAdminMessage(COLOR_DARKRED, 1, string);
AddZaiatWantedLevel(killerid, "First Degree Murder");
SendClientMessage(killerid, COLOR_RED, " You are now criminal, Your crime is: First Degree Murder, Reported by: Unknown.");
PlayerPlaySound(playerb,1054,0.0,0.0,0.0);
format(string, sizeof(string), "LSPD/FBI/ARMY: %s has commited a crime for: First Degree Murder, Reporter: Unknown.", NORPN(killerid));
SendCopMessage(COLOR_PURPLE, string);
SendFBIMessage(COLOR_PURPLE, string);
SendARMYMessage(COLOR_PURPLE, string);
Log("logs/kill.log", string);
i want if a cop kills a player he won't be a criminal.
Thanks for helping
Re: fdm help -
Kimossab - 07.01.2015
if(IsACop[killerid] == playerid)

That makes no sense... Shouldn't it be just if(IsACop[killerid]) ?
Re: fdm help -
Rabea - 07.01.2015
can you help me to add it?
Re: fdm help -
Rabea - 08.01.2015
Bump
Re: fdm help -
Ironboy - 08.01.2015
Quote:
Originally Posted by Rabea
okey, if a cop kills someone he will be criminal as Murder, i'm trying to do it, but it won't N]
.
.
.
.
i want if a cop kills a player he won't be a criminal.
|
What that supposed to mean
Re: fdm help -
Rabea - 08.01.2015
If a cop killed some one he will be criminal as "first degree murder"
I want if cop killed someone he wont be criminal
Re: fdm help -
Rabea - 08.01.2015
Bump
Re: fdm help -
Kimossab - 08.01.2015
public OnPlayerDeath(playerid, killerid, reason)
{
if(IsPlayerCop[killerid]) return 1;
//rest of code
}