SA-MP Forums Archive
ysf and npc classes - 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: ysf and npc classes (/showthread.php?tid=102877)



ysf and npc classes - Jason_Borne420 - 17.10.2009


first off i wanted to ask if there is a ysf version yet for the 0.3 - i searched and cant find any news about it or anything, and ysf is CRITICAL to my gamemode/gameplay


second, i want to ask if there is a way to set an NPC's character. i didnt see a way to do this and no topics about it. thanks in advance.


Re: ysf and npc classes - wijnkamp - 17.10.2009

Answer to your second quistion you can use SetSpawnInfo under OnPlayerSpawn

Example:

Код:
    if(!strcmp(npcname, "NPCNAME", true))
    {
      SetSpawnInfo(playerid,69,255,1213.7261,-15.2646,1000.9219,0.0,-1,-1,-1,-1,-1,-1); // bus driver guy
      return 1;
    }