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



Weapon state - JaydenJason - 25.12.2014

Greetings, thank you for reading my thread.

I'd like to know how to know if someone has a weapon out in a certain range, such as in an interior of the PD

That within 2 minutes a message is sent with sendclientmessage

With more details

Id like it for someone if they could help/make me a weapon state finder, ignoring brass knuckles and fire extenguisher, that if a weapon gets pulled out in a range of point a timer of 2 minutes starts, and if the player still has a weapon (including melees firearms ignoring brass knuckles and fire extenguisher) a sendclientmessage gets sent

Id do it myself if i had a bit more experience with pawno scripting, Im just a rookie.


Re: Weapon state - JaydenJason - 26.12.2014

sigh


Re: Weapon state - cyberlord - 26.12.2014

IsPlayerInRangeOfPoint ();
{
GetPlayerWeapon();
if(weaponid != 0)
{
SendClientMessage();
}

}

try something like this