AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [L4D2] Botslayer (https://forums.alliedmods.net/showthread.php?t=140707)

chinagreenelvis 10-15-2010 19:08

[L4D2] Botslayer
 
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);
    }



ARES[ro] 10-15-2010 19:13

Re: [L4D2] Botslayer
 
Wrong section buddy.

chinagreenelvis 10-15-2010 20:22

Re: [L4D2] Botslayer
 
Um. You're right, I clicked on the wrong scripting forum. Thanks.

ARES[ro] 10-15-2010 20:25

Re: [L4D2] Botslayer
 
Np.


All times are GMT -4. The time now is 10:28.

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