Raised This Month: $ Target: $400
 0% 

[L4D2] Botslayer


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
chinagreenelvis
Senior Member
Join Date: Dec 2009
Old 10-15-2010 , 19:08   [L4D2] Botslayer
Reply With Quote #1

This is the beginning of a larger project, a workaround for the director_no_survivor_bots crash.

The following script is intended to slay all survivor bots at the beginning of the round. I'd like to know why it isn't working. If anyone can help, I'd be very thankful.

PHP Code:
public OnPluginStart()
{
    
HookEvent("player_entered_start_area"PlayerEnteredStartArea);
}

public 
ActionPlayerEnteredStartArea(Handle:event, const String:name[], bool:dontBroadcast)
{
    new 
playerSpawned GetClientOfUserId(GetEventInt(event"userid"));
    if (
IsFakeClient(playerSpawned)) 
    {
        
ServerCommand("sm_slay"playerSpawned);
    }

chinagreenelvis is offline
ARES[ro]
Senior Member
Join Date: Apr 2010
Old 10-15-2010 , 19:13   Re: [L4D2] Botslayer
Reply With Quote #2

Wrong section buddy.
__________________
okay
ARES[ro] is offline
chinagreenelvis
Senior Member
Join Date: Dec 2009
Old 10-15-2010 , 20:22   Re: [L4D2] Botslayer
Reply With Quote #3

Um. You're right, I clicked on the wrong scripting forum. Thanks.
chinagreenelvis is offline
ARES[ro]
Senior Member
Join Date: Apr 2010
Old 10-15-2010 , 20:25   Re: [L4D2] Botslayer
Reply With Quote #4

Np.
__________________
okay
ARES[ro] 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 10:28.


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