Raised This Month: $ Target: $400
 0% 

[CS:GO] Server crashes when terrorist dies


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
zezad
New Member
Join Date: Sep 2022
Old 09-28-2022 , 08:33   [CS:GO] Server crashes when terrorist dies
Reply With Quote #1

I'm trying to make my own prophunt script but my server crashes when a prop dies.

dust_models is an 2d array with d2 models

PHP Code:
public void OnPluginStart()
{
    
HookEvent("round_start"Event_Round_Start);
    
HookEvent("round_freeze_end"Event_Freeze);
    
RegConsoleCmd("sm_roll"roll_model);
}

public 
Action Event_Round_Start(Event eventchar[] namebool dontBroadcast)
{
    for (
int i 1<= MaxClientsi++)
    {
        if (
IsClientInGame(i) && GetClientTeam(i) == 2// 2 T 3 CT
        
{
            
SetEntityModel(idust_models[gen_random_number()]);
            
ClientCommand(i"thirdperson");
        }
    }

zezad 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 09:52.


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