Quote:
Originally Posted by bgedition
I will you give example:
pawn Код:
public OnPlayerTargetPlayer(playerid) { new targetid = GetPlayerTargetPlayer(playerid); if(IsPolice(playerid)) { if(GetPlayerWantedLevel(targetid) == 0) { SendClientMessage(playerid, /*color*/, "[ATTENTION]: This player is not suspected. You can't kill it."); } } return 1; }
|
If you replace the ATTENTION message with return 0, that would not allow the player to shoot the other player, right?