Bot Question.
#1

Heelllooo

I want to change the ID of my Bot.
But i heard i need to make Blank Bots and kick them.
But how i do this?!
Reply
#2

Question: Why would you change its ID? Maybe there is an other way ...
Reply
#3

Because it has ID 0 ... but i would like to change it to ... 500^^

Other Way? ...
Reply
#4

Help PLease
Reply
#5

You can't it's sa-mp default.
Reply
#6

I can!! I Read that i can make Blank Bots. And then i can kick them (automatictly). So my Bot has ID 10 or something else
Reply
#7

Edited
Reply
#8

Quote:
Originally Posted by TzAkS.
Посмотреть сообщение
You need to create another vehicle instead of that boat and you will do it like this
Код:
AddStaticVehicle(........);//this is the first vehicle,your boat and you will change it with another vehicle
// another cars
AddStaticVehicle(...);//here you need to put your boat after last line with addstaticvehicle or createvehicle
If you don`t change the first line with AddStaticVehicle all cars will be confused with 1 ID.
WHAT
he said BOT not BOAT




Quote:
Originally Posted by Injectio73
Посмотреть сообщение
Because it has ID 0 ... but i would like to change it to ... 500^^

Other Way? ...
this does not explain WHY you would need todo this, your gonna introduce a ton of
code just to change the ID of a bot?

Not sure if you can connect a bot outside of OnGameModeInit()
but if you can you could probably kick him when a player connected and then re add him,
but if player 10 is joining and player 2 leaves before your bot connects he will get ID 2

its not easy todo and I dont see WHY one would need todo this.
Reply
#9

Lol,didn`t read that )

Код:
for(new i; i < 30; i++)
{
   new string[16];
   format(string,sizeof(string),"Bot%d",i);
   ConnectNPC(string,"npcidle");
}
ConnectNPC("NPC","NPC");
for(new i; i < 30; i++)
{
   Kick(i);
}
Reply
#10

Quote:
Originally Posted by TzAkS.
Посмотреть сообщение
Lol,didn`t read that )

Код:
for(new i; i < 30; i++)
{
   new string[16];
   format(string,sizeof(string),"Bot%d",i);
   ConnectNPC(string,"npcidle");
}
ConnectNPC("NPC","NPC");
for(new i; i < 30; i++)
{
   Kick(i);
}
How does it Work? What i must doing?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)