[HELP] murder - 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] murder (
/showthread.php?tid=471137)
[HELP] murder -
Luca12 - 21.10.2013
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");
Re: [HELP] murder -
newbie scripter - 21.10.2013
Код:
if(IsPlayerConnected(playerid) && IsACop(killerid))
{
PlayerInfo[playerid][pDeaths]++;
PlayerInfo[killerid][pKills]++;
SCM(killerid,COLOR_LIGHTRED,"Pocinili ste zlocin( *you kill cop! ).Reporter:Nepoznat.");
return 1;
}
u wrote You Kill civilian, guess im right.
Re: [HELP] murder -
Luca12 - 21.10.2013
what you talking read the code omg this is when player kill civilan omg.
Re: [HELP] murder -
newbie scripter - 21.10.2013
1st i cant understand what you are saying