SA-MP Forums Archive
[HELP] onplayerdeath - 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: [HELP] onplayerdeath (/showthread.php?tid=469803)



[HELP] onplayerdeath - Luca12 - 14.10.2013

Hello I make when leader of FBI kill his member than he get some message but the problem is when I kill my member it set my crime a murder so how in this code make if is a player cop that don't get that crime so I just want in
tthis code is a player cop killerid than he doesn't get this in the code
pawn Код:
if(IsACop(playerid) && IsPlayerConnected(killerid) && IsACop(killerid))
        {
            PlayerInfo[playerid][pDeaths]++;
            PlayerInfo[killerid][pKills]++;
            PostaviZlocin(killerid,"Ubojstvo predstavnika zakona","Nepoznato");
            return 1;
        }



Re: [HELP] onplayerdeath - xVIP3Rx - 14.10.2013

Where is the code that gives wanted level to the player ?


Re: [HELP] onplayerdeath - Luca12 - 14.10.2013

Quote:

PostaviZlocin(killerid,"Ubojstvo predstavnika zakona","Nepoznato");

that code which I post I just want in them to set if a player a cop that he doesn't get which is in the code if you know what I mean


Re: [HELP] onplayerdeath - xVIP3Rx - 14.10.2013

As I understood, You don't want to give wanted level to the cop if he was the killer, right ?
And this "PostaviZlocin" gives a wanted level, Then replace it with SendClientMessage..


Re: [HELP] onplayerdeath - Luca12 - 14.10.2013

I can't do that I just want you get me if a cop killerid that he doesn't get that the reason for that is II have a code when leader FBI kill fbi member then I get that message beacuse is playerid cop and I get that message instad of this when I kill my membeer I must get that meesage under you see it but instead I get a crime you kill the cop which is code I provide in the first post and the solution is that code if I put that is killerid is a cop that he doesn't get message you kill the cop and then I get this meesage under this text if you know what I mean I can't explain better sorry.

pawn Код:
if(PlayerInfo[playerid][Clan] == 2 && PlayerInfo[killerid][Lider] == 2)
        {
            PlayerInfo[playerid][pDeaths]++;
            PlayerInfo[killerid][pKills]++;
            SCM(killerid,COLOR_LIGHTRED,"You kill own member! ).Reporter:Nepoznat.");
        }



Re: [HELP] onplayerdeath - Ayumi - 15.10.2013

I think I understand;

If the FBI leader is to kill a cop or another member of the FBI below him; it shouldn't give him a wanted level, however it does, although you don't want the system completely removed as you want normal people to get a wanted level if they kill other players or cops?

This would be done by setting ranks within the police department and/or FBI - then stating that if the player is a certain rank within the organisation, show; "You have just killed one of your members, 'Buddy Love'." - else set the players wanted level up an additional star.

Above is just an example. I can do the above for you if that's what you meant? Just want to be sure before I do so is all.