Raised This Month: $ Target: $400
 0% 

I'm a beginner and I need help


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Ghyth
Junior Member
Join Date: Mar 2014
Old 03-03-2014 , 15:09   I'm a beginner and I need help
Reply With Quote #1

I want to make a restart car and found something but I wanted to modify it and shoot me some errors. I am ignorant of this please do not insult
I could say that I have to change?

Quote:
#include <amxmodx>
#include <amxmisc>
#include <engine>

#define PLUGIN "Auto RR"
#define VERSION "New"
#define AUTOR "Ghyth"

new spFile[96]

public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTOR)
register_clcmd("amx_restart","cmdRR",ADMIN_CV AR)
set_task(54.45,"cancion")
set_task(54.5,"aviso")
set_task(55.1,"aviso1")
set_task(55.8,"aviso2")
set_task(56.5,"aviso3")
set_task(57.2,"aviso4")
set_task(54.5,"aviso5")
set_task(55.1,"aviso6")
set_task(55.8,"aviso7")
set_task(56.5,"aviso8")
set_task(63.0,"Autorr")
}

public plugin_precache()
{
format( spFile, 95, "sound/FM/rr.wav")
if(file_exists(spFile))
{
precache_sound("FM/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(1.45,"cancion")
set_task(1.5,"aviso")
set_task(2.1,"aviso1")
set_task(2.8,"aviso2")
set_task(3.5,"aviso3")
set_task(4.2,"aviso4")
set_task(1.5,"aviso5")
set_task(2.1,"aviso6")
set_task(2.8,"aviso7")
set_task(3.5,"aviso8")
set_task(6.5,"Autorr")
new name[32]
get_user_name(id, name, sizeof(name) - 1)
client_print(0,print_chat,"ADMIN %s : Seteo Un Super Restart !!!!!",name)
}

public cancion()
{
if(file_exists(spFile))
{
client_cmd(0,"spk sound/FM/rr.wav")
}
}
public aviso(){
set_hudmessage(255, 170, 85, -1.0, 0.3, 1, 6.0, 5.0)
show_hudmessage(0, "--| Daleeeee! |--")
new iPlayers[ 32 ], iNum, Conos
get_players( iPlayers, iNum )
for( new i = 0; i < iNum; i++ )
{
Conos = iPlayers[i]

}
Temblor(Conos)

}
public aviso1(){

set_hudmessage(255, 170, 85, -1.0, 0.3, 1, 6.0, 5.0)
show_hudmessage(0, "--| One |--")
}
public aviso2(){

set_hudmessage(255, 170, 85, -1.0, 0.3, 1, 6.0, 5.0)
show_hudmessage(0, "--| Two |--")
}
public aviso3(){

set_hudmessage(255, 170, 85, -1.0, 0.3, 1, 6.0, 5.0)
show_hudmessage(0, "--| Three |--")
}
public aviso4(){

set_hudmessage(255, 170, 85, -1.0, 0.3, 1, 6.0, 2.0)
show_hudmessage(0, "--| Four |--")

public aviso5(){

set_hudmessage(255, 170, 85, -1.0, 0.3, 1, 6.0, 5.0)
show_hudmessage(0, "--| Uno |--")
}
public aviso6(){

set_hudmessage(255, 170, 85, -1.0, 0.3, 1, 6.0, 5.0)
show_hudmessage(0, "--| Dos |--")
}
public aviso7(){

set_hudmessage(255, 170, 85, -1.0, 0.3, 1, 6.0, 5.0)
show_hudmessage(0, "--| Tres |--")
}
public aviso8(){

set_hudmessage(255, 170, 85, -1.0, 0.3, 1, 6.0, 2.0)
show_hudmessage(0, "--| Cuatro |--")
new iPlayers[ 32 ], iNum, Conos
get_players( iPlayers, iNum )
for( new i = 0; i < iNum; i++ )
{
Conos = iPlayers[i]

}
Temblor(Conos)
}

public Autorr()
{
set_hudmessage(255, 170, 85, -1.0, 0.3, 1, 6.0, 2.0)
show_hudmessage(0,"Diversion Extrema!!!... ")
server_cmd("mp_freezetime 3")
server_cmd("sv_restart 1")
set_task(2.0,"Vale")
}

public Vale()
{
new iPlayers[ 32 ], iNum, Conos
get_players( iPlayers, iNum )
for( new i = 0; i < iNum; i++ )
{
Conos = iPlayers[i]
ScreenBlack(Conos)
}
new host[128],ip[32]
get_cvar_string("hostname", host, 127)
get_cvar_string("net_address", ip, 31)
set_hudmessage(random_num(55,255), random_num(55,255), random_num(55,255), -1.0, -1.0, 1, 6.0, 8.0)
show_hudmessage(0,"%s ^n %s ",host,ip)
server_cmd("mp_freezetime 0")
}

public Temblor(Conos)
{
message_begin(MSG_ALL, get_user_msgid("ScreenShake"), {0,0,0}, Conos)
write_short(255<< 14 ) //ammount
write_short(10 << 14) //lasts this long
write_short(255<< 14) //frequency
message_end()
}
public ScreenBlack(Conos)
{
message_begin(MSG_ALL,get_user_msgid("ScreenF ade"),{0,0,0},Conos)
write_short(1<<15)
write_short(1<<13)
write_short(1<<12)
write_byte( 0 )
write_byte( 0 )
write_byte( 0 )
write_byte( 255 )
message_end()
}
Already, Thanks
Ghyth is offline
 


Thread Tools
Display Modes

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 05:56.


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