Making an Anti DM system
#10

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?
Reply


Messages In This Thread
Making an Anti DM system - by FunnyBear - 09.01.2015, 19:09
Re: Making an Anti DM system - by ball - 09.01.2015, 20:50
Re: Making an Anti DM system - by FunnyBear - 09.01.2015, 21:17
Re: Making an Anti DM system - by FunnyBear - 09.01.2015, 22:46
Re: Making an Anti DM system - by bgedition - 09.01.2015, 22:48
Re: Making an Anti DM system - by FunnyBear - 09.01.2015, 22:57
Re: Making an Anti DM system - by bgedition - 09.01.2015, 23:01
Re: Making an Anti DM system - by FunnyBear - 09.01.2015, 23:10
Re: Making an Anti DM system - by bgedition - 09.01.2015, 23:11
Re: Making an Anti DM system - by FunnyBear - 09.01.2015, 23:17

Forum Jump:


Users browsing this thread: 6 Guest(s)