The bots can be killed?
#1

The bots can be killed?
Reply
#2

https://sampwiki.blast.hk/wiki/NPC:OnPlayerDeath
What does this tell you?
Reply
#3

Quote:
Originally Posted by Don Correlli
I shoot a bot and he don't die.
Reply
#4

NPC:OnPlayerDeath sounds more like a bot killing a player
Reply
#5

Quote:
Originally Posted by Mowgli
NPC:OnPlayerDeath sounds more like a bot killing a player
Код:
format(string, sizeof(string), "Oh no %s! I didn't want you to die that way!", name);
Don't think so. It's funny how the point is that OnPlayerDeath can't be called, cause you can't even kill it <.>
Reply
#6

At wiki, i see this code for NPC:OnPlayerDeath:
pawn Код:
public OnPlayerDeath(playerid)
{
  new string[80], name[MAX_PLAYER_NAME];
  GetPlayerName(playerid, name, sizeof(name));
 
  format(string, sizeof(string), "Oh no %s! I didn't want you to die that way!", name);
  SendChat(string);
  return 1;
}
And SendChat works only for bots.
Reply
#7

Quote:
Originally Posted by Don Correlli
At wiki, i see this code for NPC:OnPlayerDeath:
pawn Код:
public OnPlayerDeath(playerid)
{
  new string[80], name[MAX_PLAYER_NAME];
  GetPlayerName(playerid, name, sizeof(name));
 
  format(string, sizeof(string), "Oh no %s! I didn't want you to die that way!", name);
  SendChat(string);
  return 1;
}
And SendChat works only for bots.
Perhaps when the player dies, one of the bots say that.
Reply
#8

WTH? What can bots do except for driving and walking? WTH? Maybe useful as taxi drivers for RPG server but for nothing else...?

Why can't they get killed or attack another player? I planned to create bots for gang wars but this seems to be impossible.
Reply
#9

you cant even carjack them, lol, hope will be fixed soon, good work Kye
Reply
#10


Why are you complaining? You forgot how much work this probably took to add? Also it is still in beta. Get over yourself, and show some respect.

They will prove useful for alot of things.
Reply


Forum Jump:


Users browsing this thread: