10.11.2010, 00:56
hey all, i made a bot (npc) which drift on bigear road to the bottom.
Once it reaches the bottom it stays there because i removed auto start all the time.
Now i was wondering is it possible to make like if player type "/drift1tut" bot will show up and drift it and he will stay at the bottom until someone else calls him "/drift1tut" and he respawn..
i did this too:
This spawns the bot and he drives to the bottom and stops, thats was kinda what i want, but if i type /drift1tut again nothing happens ofc because he is already connected..
I wonder maybe there is a way that he will reach the bottom and disconnect automaticaly then people type that command and connect him again or something?..
I spent figuring it out 3 hrs trying all diff ways but i still cant get it to respawn..
id be really happy if someone could help me out here
thank you
Once it reaches the bottom it stays there because i removed auto start all the time.
Now i was wondering is it possible to make like if player type "/drift1tut" bot will show up and drift it and he will stay at the bottom until someone else calls him "/drift1tut" and he respawn..
i did this too:
Quote:
if (strcmp(cmdtext, "/drift1tut", true)==0) { ConnectNPC("drifter1","drifter1"); return 1; } |
I wonder maybe there is a way that he will reach the bottom and disconnect automaticaly then people type that command and connect him again or something?..
I spent figuring it out 3 hrs trying all diff ways but i still cant get it to respawn..
id be really happy if someone could help me out here
thank you