NPC object?
#1

...hmmm

I cant figure out, how they can hold a bottle in their hand or something?
Any help or wiki page?
Reply
#2

Try use this when recording

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

Код:
 20 - SPECIAL_ACTION_DRINK_BEER    - Will increase the player's drunk level when used
 21 - SPECIAL_ACTION_SMOKE_CIGGY    - Will give the player a cigar
 22 - SPECIAL_ACTION_DRINK_WINE    - Will give the player a wine bottle to get drunk from
 23 - SPECIAL_ACTION_DRINK_SPRUNK   - Will give the player a sprunk bottle to drink from
Reply
#3

Thanks,

But you said while recording...
whats the cmd
Reply
#4

Quote:
Originally Posted by TeRRoRism
Thanks,

But you said while recording...
whats the cmd
SetPlayerSpecialAction(playerid,20);

Will give the player a beer bottle, and when you press fire while holding it, drunk level increases
Reply
#5

ohh... ok ty
Reply
#6

Quote:
Originally Posted by IntrozeN
Quote:
Originally Posted by TeRRoRism
Thanks,

But you said while recording...
whats the cmd
SetPlayerSpecialAction(playerid,20);

Will give the player a beer bottle, and when you press fire while holding it, drunk level increases
1st Need to make command to do that when recording..

Код:
	if (strcmp(cmdtext, "/drink", true) == 0)
	{
  	SetPlayerSpecialAction (playerid, SPECIAL_ACTION_DRINK_BEER );
  	SendClientMessage(playerid, 0xFFFFFFAA, "dont drink too much ! ");
  	return 1;
	}
	if (strcmp(cmdtext, "/ciggy", true) == 0)
	{
  	SetPlayerSpecialAction (playerid, SPECIAL_ACTION_SMOKE_CIGGY );
  	SendClientMessage(playerid, 0xFFFFFFAA, "Dont smoke too much ! ! ");
  	return 1;
	}
	if (strcmp(cmdtext, "/wine", true) == 0)
	{
  	SetPlayerSpecialAction (playerid, SPECIAL_ACTION_DRINK_WINE );
  	SendClientMessage(playerid, 0xFFFFFFAA, "Dont drink! ");
  	return 1;
	}
Put this into your gamemode public OnPlayerCommandText(playerid, cmdtext[]) line
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)