AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Drop the server (https://forums.alliedmods.net/showthread.php?t=236918)

Ghyth 03-14-2014 11:49

Drop the server
 
Why downloading sound, the server goes down?
PHP Code:

#include <amxmodx> 
#include <amxmisc> 
#include <fun> 
#include <cstrike> 
#include <engine> 
#include <fakemeta> 
#include <dhudmessage>

#define PLUGIN "AutoRestart"
#define VERSION "1.0" 
#define AUTOR "Ghyth" 
#define TASK_RENDER 1000

new spFile[96]

public 
plugin_init() 

register_plugin(PLUGINVERSIONAUTOR
register_clcmd("amx_restart","cmdRR",ADMIN_CVAR
set_task(25.45,"cancion"
set_task(25.3,"aviso"
set_task(28.3,"aviso1"
set_task(32.3,"aviso2"
set_task(34.2,"aviso3"
set_task(37.9,"aviso4"
set_task(45.9,"aviso5"
set_task(47.0,"Autorr"

public 
plugin_precache() 

formatspFile95"sound/Five_Muderers/rr.wav"
if(
file_exists(spFile))

precache_sound("Five_Muderers/rr.wav"


public 
cmdRR(id,level,cid

if(!
cmd_access(id,level,cid,1)) 
return 
PLUGIN_HANDLED 
set_task
(0.1,"setear",id
return 
PLUGIN_HANDLED 

public 
setear(id

set_task(25.45,"cancion"
set_task(25.3,"aviso")
set_task(28.3,"aviso1"
set_task(32.3,"aviso2"
set_task(34.2,"aviso3"
set_task(37.9,"aviso4"
set_task(45.0,"aviso5"
set_task(47.0,"Autorr"
}
 public 
cancion() 

if(
file_exists(spFile))

client_cmd(0,"spk sound/Five_Muderers/rr.wav"
new 
iPlayers32 ], iNumindex 
get_players
iPlayersiNum 
for( new 
0iNumi++ ) 

index iPlayers[i

set_task(0.0"Rendering"index+TASK_RENDER_"b"); 
set_lights("e")

}
public 
aviso()

set_hudmessage(25517085, -1.00.316.05.0
show_hudmessage(0"--| ˇBienvenidos!|--")
set_lights("c")
}
public 
aviso1(){ 
set_hudmessage(25517085, -1.00.316.05.0
show_hudmessage(0"--| Zow - HammeR.- - Jwo' - Leito |--")
set_lights("b")
}
public 
aviso2(){ 
set_hudmessage(25517085, -1.00.316.05.0
show_hudmessage(0"--| Creciendo Junto a vos |--"
new 
iPlayers32 ], iNumConos 
get_players
iPlayersiNum 
for( new 
0iNumi++ )
{
Conos iPlayers[i

Temblor(Conos

set_lights("a")
}
public 
aviso3(){ 
set_hudmessage(25517085, -1.00.316.05.0
show_hudmessage(0"--| Disfruta tu Estadia |--"
new 
iPlayers32 ], iNumConos 
get_players
iPlayersiNum 
for( new 
0iNumi++ ) 

Conos iPlayers[i

Temblor(Conos
}
public 
aviso4()

    
set_hudmessage(25517085, -1.00.316.05.0
    
show_hudmessage(0"--| Five-Muderers |--"

    new 
iPlayers32 ], iNumindex
    get_players
iPlayersiNum )
    for( new 
0iNumi++ ) 
    {
    
index iPlayers[i]
        
    }
    
set_task(0.0"ScreenRender"index+TASK_RENDER_"b");  
     }
public 
aviso5(){ 
set_hudmessage(25517085, -1.00.316.02.0
show_hudmessage(0"--| Empieza la Diversion!!!! |--"
new 
iPlayers32 ], iNumConos 
get_players
iPlayersiNum 
for( new 
0iNumi++ ) 

Conos iPlayers[i

Temblor(Conos

public 
Autorr(){ 
set_hudmessage(25517085, -1.00.316.02.0
show_hudmessage(0,"Ustedes Forman la Comunidad"
server_cmd("mp_freezetime 0"
set_task(2.0,"Vale")
set_task(0.0,"remove_brillo")
server_cmd("sv_restart 1"
new 
iPlayers32 ], iNumplr 
get_players
iPlayersiNum 
for( new 
0iNumi++ ) 

plr iPlayers[i]; 
remove_task(plr+TASK_RENDER);
}
set_lights("")
}
public 
Vale() 
{
new 
iPlayers32 ], iNumConos 
get_players
iPlayersiNum 
for( new 
0iNumi++ ) 

Conos iPlayers[i
ScreenBlack(Conos)
}
show_hudmessage(0,"Five-Muderers")
set_hudmessage(random_num(55,255), random_num(55,255), random_num(55,255), -1.0, -1.016.08.0)
server_cmd("mp_freezetime 0")
}
public 
remove_brillo()

new 
iPlayers32 ], iNumplr 
get_players
iPlayersiNum 
for( new 
0iNumi++ ) 
{
plr iPlayers[i]; 
set_user_rendering(plr)

}
public 
Temblor(Conos

message_begin(MSG_ALLget_user_msgid("ScreenShake"), {0,0,0}, Conos)
write_short(255<< 14 
write_short(15 << 14
write_short(255<< 14
message_end() 
}
public 
ScreenBlack(Conos

message_begin(MSG_ALL,get_user_msgid("ScreenFade"),{0,0,0},Conos
write_short(1<<15
write_short(1<<13
write_short(1<<12
write_byte
write_byte
write_byte
write_byte255 
message_end() 

public 
ScreenRender(index)
{
        new 
id index TASK_RENDER;
    
        
message_begin(MSG_ONE_UNRELIABLEget_user_msgid("ScreenFade"), _id)
        
write_short((1<<12)*4);
        
write_short((1<<12)*4);
        
write_short(0x0000);
        
write_byte(random_num(100250));
        
write_byte(random_num(100250));
        
write_byte(random_num(100250));
        
write_byte(200);
        
message_end();  
}  
public 
Rendering(index

new 
id index TASK_RENDER
new 
rgb
switch(
is_user_admin(id)) 

case 
1: { 02550; } 
case 
0

switch(
get_user_team(id)) 

case 
CS_TEAM_CT : { 00255; } 
case 
CS_TEAM_T : { 2550; } 



set_user_rendering(idkRenderFxGlowShellrgbkRenderGlow16); 



YamiKaitou 03-14-2014 11:53

Re: Drop the server
 
What is the error message?

Ghyth 03-14-2014 12:15

Re: Drop the server
 
Quote:

Originally Posted by YamiKaitou (Post 2111380)
What is the error message?

users says: server shutting down

YamiKaitou 03-14-2014 12:21

Re: Drop the server
 
Quote:

Originally Posted by Ghyth (Post 2111389)
users says: server shutting down

How about the server console?

Ghyth 03-14-2014 13:10

Re: Drop the server
 
Quote:

Originally Posted by YamiKaitou (Post 2111392)
How about the server console?

I could already fix. I can ask you something else, as I have here ScreenRender and Rendering, it may be that only one person to do the effect?


All times are GMT -4. The time now is 06:02.

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