[FS&INC] ErroR's improved NPC functions! [IsPlayerNPC, ApplyAnimation etc.]
#1

[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.
Reply
#2

Updated, please re-download.
Reply
#3

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

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
Reply
#5

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

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
Reply
#7

xD xD

I'm sorry, I forgot.

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


Forum Jump:


Users browsing this thread: 1 Guest(s)