SA-MP Forums Archive
[FS&INC] ErroR's improved NPC functions! [IsPlayerNPC, ApplyAnimation etc.] - 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: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FS&INC] ErroR's improved NPC functions! [IsPlayerNPC, ApplyAnimation etc.] (/showthread.php?tid=98136)



[FS&INC] ErroR's improved NPC functions! [IsPlayerNPC, ApplyAnimation etc.] - erorcun - 19.09.2009

[FS&INC] ErroR's improved NPC functions!



Warning: This modification is for the NPC modes!

New Functions:
pawn Код:
native SendChatToPlayer(receiverid, message[]);
native GetPlayerID(playername[]);
native SetPlayerPos(playerid, Float:x, Float:y, Float:z);
native SetPlayerHealth(playerid, Float:health);
native SetPlayerArmour(playerid, Float:armour);
native SetPlayerName(playerid, name[]);
native SetPlayerSpecialAction(playerid, actionid);
native SetMySpecialAction(actionid);
native ApplyAnimationToPlayer(playerid, animlib[], animname[], Float:fS, opt1, opt2, opt3, opt4, opt5);
native ClearPlayerAnimations(playerid);
native ApplyAnimationToMe(animlib[], animname[], Float:fS, opt1, opt2, opt3, opt4, opt5);
native ClearMyAnimations();
native TogglePlayerControllable(playerid, toggle);
native SetPlayerCameraLookAt(playerid, Float:x, Float:y, Float:z);
native SetCameraBehindPlayer(playerid);
native IsPlayerNPC(playerid);
Download
Updated, please re-download.
http://www.mediafire.com/download.php?kndojomnlmf

Supported versions: RC 5-1, RC 5-2, RC 6-1

Sorry for my english.


Re: [FS&INC] ErroR's improved NPC functions! [IsPlayerNPC, ApplyAnimation etc.] - erorcun - 19.09.2009

Updated, please re-download.


Re: [FS&INC] ErroR's improved NPC functions! [IsPlayerNPC, ApplyAnimation etc.] - Correlli - 19.09.2009

Not bad, but you really don't need 256 cells, use 128.


Re: [FS&INC] ErroR's improved NPC functions! [IsPlayerNPC, ApplyAnimation etc.] - erorcun - 19.09.2009

Quote:
Originally Posted by Don Correlli
Not bad, but you really don't need 256 cells, use 128.
and ApplyAnimation fixed.

http://www.mediafire.com/download.php?zy0o5mjjig0


Re: [FS&INC] ErroR's improved NPC functions! [IsPlayerNPC, ApplyAnimation etc.] - Harry_Gaill - 19.09.2009

Haven't you just enabled all these commands to be used IG by casual players?


Re: [FS&INC] ErroR's improved NPC functions! [IsPlayerNPC, ApplyAnimation etc.] - lavamike - 19.09.2009

Quote:
Originally Posted by Harry_Gaill [adream-rp.com
]
Haven't you just enabled all these commands to be used IG by casual players?
You can probably just add IsPlayerNPC(playerid) to the OnPlayerCommandText


Re: [FS&INC] ErroR's improved NPC functions! [IsPlayerNPC, ApplyAnimation etc.] - erorcun - 19.09.2009

xD xD

I'm sorry, I forgot.

Updated: http://www.mediafire.com/download.php?kndojomnlmf