SA-MP Forums Archive
Red face how to add NPC boot player - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Server (https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: Red face how to add NPC boot player (/showthread.php?tid=471107)



Red face how to add NPC boot player - par30 - 21.10.2013




Re: Red face how to add NPC boot player - [D]ry[D]esert - 21.10.2013

https://sampwiki.blast.hk/wiki/NPC:ConnectNPC


Re: Red face how to add NPC boot player - par30 - 21.10.2013

wat not work ?
not show bot player


Quote:


public OnGameModeInit()
{
ConnectNPC("[BOT]Pilot", "pilot");


CreateDynamicObject(109, -1551.87585, 741.70190, 6.96150, 86.00000, 0.00000, 0.00000);
CreateDynamicObject(109, -1553.20630, 739.82355, 6.96150, 86.00000, 0.00000, 0.00000);
CreateDynamicObject(109, -1554.18677, 743.20221, 6.96150, 86.00000, 0.00000, 0.00000);
CreateDynamicObject(109, -1555.25635, 740.15961, 7.42850, 86.00000, 0.00000, 0.00000);

return 1;
}




Re: Red face how to add NPC boot player - [D]ry[D]esert - 21.10.2013

Well, you have to spawn it and set his position.


Re: Red face how to add NPC boot player - par30 - 21.10.2013

Quote:
Originally Posted by [D]ry[D]esert
Посмотреть сообщение
Well, you have to spawn it and set his position.
How
Please explain


Re: Red face how to add NPC boot player - par30 - 21.10.2013

how ? plz help


Re: Red face how to add NPC boot player - [D]ry[D]esert - 21.10.2013

Read some tutorials..
Here is a tutorial: https://sampforum.blast.hk/showthread.php?tid=355372


Re: Red face how to add NPC boot player - Mauzen - 21.10.2013

At first learn the very basics of scripting. Then come back and ask again. This forum isnt meant for teaching every single person how to script from 0. The wiki or the tutorial section is where you need to read.