Raised This Month: $ Target: $400
 0% 

[L4D2] Botslayer


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



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