NPC object? - 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: NPC object? (
/showthread.php?tid=105674)
NPC object? -
Darekfred - 30.10.2009
...hmmm
I cant figure out, how they can hold a bottle in their hand or something?
Any help or wiki page?
Re: NPC object? -
Mive - 30.10.2009
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
Re: NPC object? -
Darekfred - 30.10.2009
Thanks,
But you said while recording...
whats the cmd
Re: NPC object? -
introzen - 30.10.2009
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
Re: NPC object? -
Darekfred - 30.10.2009
ohh... ok ty
Re: NPC object? -
GaGlets(R) - 30.10.2009
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