SA-MP Forums Archive
Cop Kill - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Cop Kill (/showthread.php?tid=218961)



Cop Kill - djaCido23 - 31.01.2011

Hi..I have a problem...If i have wanted level and a cop kill me..I'm not going to prison..How i can solve this..
P.S.: If u need a line or something please tell me.
Thanks!!


Re: Cop Kill - Stigg - 31.01.2011

You wont go to prison because the cop killed you.

Peace...


Re: Cop Kill - bartje01 - 31.01.2011

Well.
At onplayerdeath.

What are you using? gTeam?
Or variable for cops like new cop[MAX_PLAYERS];

Once you've told me that I'll help


Re: Cop Kill - djaCido23 - 31.01.2011

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    new name[MAX_PLAYER_NAME];
    new string[256];
    //new dmessage[128];
    //new deathreason[20];
    new playercash;
    new victimteam;
    new Float:px,Float:py,Float:pz;
    new killerteam;

    victimteam = gTeam[playerid];
    killerteam = gTeam[killerid];
    gPlayerSpawned[playerid] = 0;
    GetPlayerName(playerid, name, sizeof(name));
    PlayerInfo[playerid][pLocal] = 255;
    GetPlayerPos(playerid, px, py, pz);
    if(killerid != 255)
    {
this..