SA-MP Forums Archive
npc class character? - 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 class character? (/showthread.php?tid=95634)



npc class character? - ғαιιοцт - 04.09.2009

it looks like it doesn't matter with what character I record my .rec file, the character will always be the same :l
is it possible to give the npc another class?
it's weird if they all walk around the city with the same class


Re: npc class character? - Correlli - 04.09.2009

SetPlayerSkin? But this won't work in NPC-script because there isn't any skin function in a_npc.inc file.


Re: npc class character? - [HUN]Gamestar - 04.09.2009

Use this function to OnPlayerRequestClass:
Код:
SetSpawnInfo( playerid, team, skin, X,Y,Z,Angle,Weapon1,Ammo1,Weapon2,Ammo2,Weapon3,Ammo3);
Gamestar



Re: npc class character? - ғαιιοцт - 04.09.2009

Quote:
Originally Posted by Don Correlli
SetPlayerSkin? But this won't work in NPC-script because there isn't any skin function in a_npc.inc file.
oh I thought this function didn't work on npc's
thanks