21.10.2013, 14:07
Hello I have a trouble with this almost 2 day so I make when I kill my member then it send you kill your own member but the problem is when I kill my member it write me you kill a civilian if yu know what I mean. I hope that you will undeerstand what I want her . Thanks
pawn Код:
if(IsACop(playerid) && IsPlayerConnected(killerid) && PlayerInfo[playerid][Clan] != PlayerInfo[killerid][Lider] && PlayerInfo[killerid][Clan] != PlayerInfo[playerid][Lider])
{
PlayerInfo[playerid][pDeaths]++;
PlayerInfo[killerid][pKills]++;
PostaviZlocin(killerid,"Murder of cop!","Nepoznato");
return 1;
}
if(IsPlayerConnected(playerid) && IsACop(killerid))
{
PlayerInfo[playerid][pDeaths]++;
PlayerInfo[killerid][pKills]++;
SCM(killerid,COLOR_LIGHTRED,"Pocinili ste zlocin( *you kill civilan! ).Reporter:Nepoznat.");
return 1;
}
if(PlayerInfo[playerid][Clan] != PlayerInfo[killerid][Lider] && PlayerInfo[killerid][Clan] != PlayerInfo[playerid][Lider])
{
PlayerInfo[playerid][pDeaths]++;
PlayerInfo[killerid][pKills]++;
SCM(killerid,COLOR_LIGHTRED,"Pocinili ste zlocin( *You kill your member! ).Reporter:Nepoznat.");
}
PlayerInfo[playerid][pDeaths]++;
PlayerInfo[killerid][pKills]++;
PostaviZlocin(killerid,"Murder of first degre!","Nepoznato");