SA-MP Forums Archive
Question Drink/Smoke - 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: Question Drink/Smoke (/showthread.php?tid=104541)



Question Drink/Smoke - FreeSoul - 25.10.2009

How can you make somebody drink or smoke? What is the function called? I searched but found only SetPlayerDrunkLevel / GetPlayerDrunkLevel


Re: Question Drink/Smoke - ev0lution - 25.10.2009

It's SetPlayerSpecialAction.
Use Special Actions 20-23, the list is here: https://sampwiki.blast.hk/wiki/SpecialActions


Re: Question Drink/Smoke - klavins - 25.10.2009

dont drink and drive, just smoke and fly, and say good bye before you day
-
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_SMO KE_CIGGY); // this will give player a cigar
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DRI NK_WINE); // this will give player a wine bottle
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DRI NK_BEER); //this will give player a beer (the brown one that lives in woods )




Re: Question Drink/Smoke - Globe2009 - 27.11.2009

how do you stop the drink anim i click mouse an he gets more drunk...
press space it does nothing



Re: Question Drink/Smoke - miokie - 27.11.2009

ClearAnimations(playerid);

Put that into a command or OnPlayerKeyStateChange, or something...


Re: Question Drink/Smoke - Globe2009 - 28.11.2009


nvm mate figured it out thanks

this: ClearAnimations(playerid); only works with my looping anims
i meant SetPlayerSpecialAction but its "F"
cheerz anyways mate



Re: Question Drink/Smoke - Globe2009 - 28.11.2009

nope changed my mind lol
has anyone got a command to stop it?
the SpecialAction anim

so i can ad a message saying "player hangs up the call"




Re: Question Drink/Smoke - BP13 - 28.11.2009

SetPlayerDrunkLevel(playerid, 0);
SetPlayerSpecialAction(playerid, 0);


Re: Question Drink/Smoke - Globe2009 - 28.11.2009

Quote:
Originally Posted by [SU
BP13 ]
SetPlayerDrunkLevel(playerid, 0);
SetPlayerSpecialAction(playerid, 0);
thanks mate thats what i needed