10.01.2015, 18:25
Well... We cannot guess your code.
If you could give to us your enums about War System..
Well, you could do something like this.
Repeat. Replace that PlayerInfo functions with your real enums. I can't guess your code, but I gave to you an example.
Cheers.
If you could give to us your enums about War System..
Well, you could do something like this.
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
if(PlayerInfo[killerid][Leader] == PlayerInfo[playerid][Member])
{
SendClientMessage(playerid, -1, "You killed your own member in war. You lost 1 point.");
// Other functions here.
}
return 1;
}
Cheers.