Raised This Month: $32 Target: $400
 8% 

How to kill survivors bots when they have spawned?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
desire worker
Junior Member
Join Date: Dec 2018
Location: Umbrella Corporation
Old 12-09-2018 , 07:21   How to kill survivors bots when they have spawned?
Reply With Quote #1

Greetings guys I am noob in here.

it looks like c API programming but somewhat different from that I have learned in web.

I`m currently working on making custom plugin for left4dead2

and have a problem to remove all survival bots in game.

first, hook the event

public OnPluginStart(){
HookEvent("round_start", round_start);
HookEvent("player_spawn", player_spawn);
}

and then, wanna make function for hook event

public round_start(Handle:event, const String:name[], bool:dontBroadcast){
????????????????
SetEntityHealth(Bots[], 0);
}

same for player_spawn event imao?

but don`t know how to indicate bots id.

how to get bots id?
desire worker is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 12-09-2018 , 07:37   Re: How to kill survivors bots when they have spawned?
Reply With Quote #2

If you like to code SourceMod plugins, go in right section (scripting).


__________________
Do not Private Message @me
Bacardi is offline
DarkDeviL
SourceMod Moderator
Join Date: Apr 2012
Old 12-09-2018 , 12:15   Re: How to kill survivors bots when they have spawned?
Reply With Quote #3

Quote:
Originally Posted by Bacardi View Post
If you like to code SourceMod plugins, go in right section (scripting).
And if you like to help, use the Report Post button WITHOUT replying, as said in the AlliedModders Rules to suggest things moved to another place on the forum, rather than advising people to violate other rules ("cross-posting").

Quote:
Originally Posted by AlliedModders Rules
If you post (or see a post) in the wrong section, use the Report Post button to request it be moved rather than replying to the thread.
__________________
Mostly known as "DarkDeviL".

Dropbox FastDL: Public folder will no longer work after March 15, 2017!
For more info, see the [SRCDS Thread], or the [HLDS Thread].
DarkDeviL is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:33.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode