Red face how to add NPC boot player
#1

Reply
#2

https://sampwiki.blast.hk/wiki/NPC:ConnectNPC
Reply
#3

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;
}

Reply
#4

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

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

how ? plz help
Reply
#7

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

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


Forum Jump:


Users browsing this thread: 2 Guest(s)