Raised This Month: $51 Target: $400
 12% 

[CS:GO] Server randomly crashing.


Post New Thread Reply   
 
Thread Tools Display Modes
PinHeaDi
Senior Member
Join Date: Jul 2013
Location: Bulgaria
Old 01-15-2018 , 13:13   Re: [CS:GO] Server randomly crashing.
Reply With Quote #11

So:

PHP Code:
int lighteningsprsmokespr
PHP Code:
public void OnMapStart()
{
    
lighteningspr PrecacheModel("lightning_i/laserbeam.vmt");
    
smokespr PrecacheModel("sprites/steam1.vmt");

and than:

PHP Code:
        case 15:
        {
            
CPrintToChatAll("[{orange}RollTheDice{default}] {green}%N {default}rolled the dice and a {lightgreen}lightning{default} was thrown at him."client);
            
            
float clientpos[3];
            
GetClientAbsOrigin(clientclientpos);
            
clientpos[2] -= 26
    
            
int randomx GetRandomInt(-500500);
            
int randomy GetRandomInt(-500500);
    
            
float startpos[3];
            
startpos[0] = clientpos[0] + randomx;
            
startpos[1] = clientpos[1] + randomy;
            
startpos[2] = clientpos[2] + 800;
    
            
int color[4] = {255255255255};
            
float dir[3] = {0.00.00.0};
            
float origin[3];
    
            
TE_SetupBeamPoints(startposclientposlighteningspr0000.220.010.001.0color3);
            
TE_SendToAll();
    
            
TE_SetupSparks(clientposdir50001000);
            
TE_SendToAll();
    
            
TE_SetupEnergySplash(clientposdirfalse);
            
TE_SendToAll();
    
            
TE_SetupSmoke(clientpossmokespr5.010);
            
TE_SendToAll();

            
GetClientAbsOrigin(clientorigin);
            
            switch(
GetRandomInt(12))
            {
                case 
1EmitAmbientSoundAny("iplaybgrtd/lightening.mp3"origin); 
                case 
2EmitAmbientSoundAny("iplaybgrtd/thunder.mp3"origin); 
            }
            
            
SpawnKilled(clienttrue);
            
ForcePlayerSuicide(client);
        } 
Did I get it right?
__________________
PinHeaDi 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 14:48.


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