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



Sprunk callback - BuLLeT[LTU] - 05.08.2010

Hello. I wanted to ask if anyone created OnPlayerUseSprunk callback or something similar? I was searching but i didn't find.


Re: Sprunk callback - KennethRandall - 05.08.2010

No, it doesn't exist, but I made it for you, if you want to remove the sprunk if he has one, use this:

pawn Код:
stock OnPlayerUseSprunk(playerid)
{
             if GetPlayerSpecialAnimation(playerid, SPECIAL_ACTION_DRINK_SPRUNK);
    return SetPlayerSpecialAnimation(playerid, SPECIAL_ACTION_NONE);
}