Question Drink/Smoke
#1

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

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

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 )

Reply
#4

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

ClearAnimations(playerid);

Put that into a command or OnPlayerKeyStateChange, or something...
Reply
#6


nvm mate figured it out thanks

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

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"

Reply
#8

SetPlayerDrunkLevel(playerid, 0);
SetPlayerSpecialAction(playerid, 0);
Reply
#9

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


Forum Jump:


Users browsing this thread: 1 Guest(s)