31.05.2014, 09:29
Hello I was make when player kill some cop then he get message that he is kill a cop and when cop kill civilan he get you kill the civilian and when civilian kill civilian he get message murder of first degre but the problem is I can't fix it when leader kill his own member then leader should get the message you kill the your own member but instead it says you get murder of firts degre.
here is the code
here is the code
pawn Код:
if(IsACop(playerid) && IsPlayerConnected(killerid) && PlayerInfo[killerid][Member] != 1 && PlayerInfo[killerid][Leader != 1 && PlayerInfo[killerid][Member] != 2 && PlayerInfo[killerid][Leader] != 2
&& PlayerInfo[killerid][Member] != 3 && PlayerInfo[killerid][Leader] != 3)
{
PlayerInfo[playerid][Deaths]++;
PlayerInfo[killerid][Kills]++;
SetCrime(killerid,"You kill the cop!","Nepoznato");
return 1;
}
if(IsPlayerConnected(playerid) && IsACop(killerid))
{
PlayerInfo[playerid][Deaths]++;
PlayerInfo[killerid][Kills]++;
SCM(killerid,COLOR_LIGHTRED,"You kill the civilian");
return 1;
}
if(PlayerInfo[killerid][Leader] == 1 && PlayerInfo[killerid][Member] == 1)
{
PlayerInfo[playerid][Deaths]++;
PlayerInfo[killerid][Kills]++;
SCM(killerid,COLOR_LIGHTRED,"You kill your own member");
return 1;
}
if(IsPlayerConnected(playerid) && IsPlayerConnected(killerid) && PlayerInfo[killerid][Member] != 1 && PlayerInfo[killerid][Leader] != 1 && PlayerInfo[killerid][Member] != 2 && PlayerInfo[killerid][Leader] != 2
&& PlayerInfo[killerid][Member] != 16 && PlayerInfo[killerid][Leader] != 16)
{
PlayerInfo[playerid][Smrti]++;
PlayerInfo[killerid][Ubojstava]++;
PostaviZlocin(killerid,"Murder of first degre!","Nepoznato");
return 1;
}