fdm help
#1

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
Reply
#2

if(IsACop[killerid] == playerid)

That makes no sense... Shouldn't it be just if(IsACop[killerid]) ?
Reply
#3

can you help me to add it?
Reply
#4

Bump
Reply
#5

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
Reply
#6

If a cop killed some one he will be criminal as "first degree murder"
I want if cop killed someone he wont be criminal
Reply
#7

Bump
Reply
#8

public OnPlayerDeath(playerid, killerid, reason)
{
if(IsPlayerCop[killerid]) return 1;
//rest of code
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)