SA-MP Forums Archive
kill - 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: kill (/showthread.php?tid=509431)



kill - hillko - 26.04.2014

how to make a killing in a certain place was prohibited! that is to the player could not shoot


Re: kill - mahdi499 - 26.04.2014

I can giveout example,
pawn Код:
if(IsPlayerInRangeOfPoint(playerid, range, x, y, z))
{
         SetPlayerHealth(playerid, 1000000);
} else {
         SetPlayerHealth(playerid, 100);
}
This is just an example,the code wasnt tested.


Re: kill - hillko - 26.04.2014

Quote:
Originally Posted by Ralfie
Посмотреть сообщение
Use This,
https://sampwiki.blast.hk/wiki/Areacheck

You can reset the player's weapons
And if he is shooting just clear his anims.

Check if the player is shooting by
pawn Код:
stock IsPlayerShooting(i)
{
    new index = GetPlayerAnimationIndex(i);
    return(index == 1167 || index == 363);
}
and how to make the man was not dead and frozen for a second?