SA-MP Forums Archive
detect smoking - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: detect smoking (/showthread.php?tid=234914)



detect smoking - LZLo - 04.03.2011

how can i detect if the player smoking?


Re: detect smoking - Stigg - 04.03.2011

You could try:

https://sampwiki.blast.hk/wiki/GetPlayerSpecialAction


Re: detect smoking - LZLo - 04.03.2011

thanks.


Re: detect smoking - Mean - 04.03.2011

pawn Код:
if( GetPlayerSpecialAction( playerid, SPECIAL_ACTION_SMOKE_CIGGY ) )
{
    // Stuff here
}
else SendClientMessage( playerid, 0xAAAAAA, "You aren't smoking a ciggy" );