SA-MP Forums Archive
The bots can be killed? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: The bots can be killed? (/showthread.php?tid=95157)



The bots can be killed? - CTCCoco - 02.09.2009

The bots can be killed?


Re: The bots can be killed? - Correlli - 02.09.2009

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


Re: The bots can be killed? - CTCCoco - 02.09.2009

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


Re: The bots can be killed? - Mowgli - 02.09.2009

NPC:OnPlayerDeath sounds more like a bot killing a player


Re: The bots can be killed? - XtremeChio - 02.09.2009

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


Re: The bots can be killed? - Correlli - 02.09.2009

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.


Re: The bots can be killed? - (.Aztec); - 02.09.2009

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.


Re: The bots can be killed? - Double-O-Seven - 02.09.2009

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.



Re: The bots can be killed? - TMasters - 02.09.2009

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


Re: The bots can be killed? - ded - 02.09.2009


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.