|
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
|

03-03-2006
, 20:10
|
#4
|
omg... do you even know what a closing bracket is?
i think its gonna owerflow...
Code:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "True Cal Config"
#define VERSION "1.0"
#define AUTHOR "RaYnE"
public plugin_init () {
register_plugin("TrueCalCONFIG", "1.0", "RaYnE")
register_concmd("amx_tcal", "calcz",ADMIN_SLAY, "Cal_CZ Config")
}
public calcz (id,level,cid ) {
if( !cmd_access(id,level,cid, 1) ) {
return PLUGIN_HANDLED
}
server_cmd("mp_autokick 0")
server_cmd("mp_autocrosshair 0")
server_cmd("mp_autoteambalance 0")
server_cmd("mp_buytime .34")
server_cmd("mp_consistency 1")
server_cmd("mp_c4timer 35")
server_cmd("mp_fadetoblack 0")
server_cmd("mp_falldamage 1")
server_cmd("mp_flashlight 1")
server_cmd("mp_forcechasecam 0")
server_cmd("mp_forcecamera 2")
server_cmd("mp_footsteps 1")
server_cmd("mp_freezetime 12")
server_cmd("mp_friendlyfire 1")
server_cmd("mp_hostagepenalty 0")
server_cmd("mp_limitteams 6")
server_cmd("mp_logecho 1")
server_cmd("mp_logfile 1")
server_cmd("mp_logmessages 1")
server_cmd("mp_maxrounds 15")
server_cmd("mp_playerid 0")
server_cmd("mp_roundtime 2")
server_cmd("mp_timelimit 999")
server_cmd("mp_tkpunish 0")
server_cmd("mp_startmoney 800")
server_cmd("sv_lagpush 0")
server_cmd("sv_unlagsamples 1")
server_cmd("sv_voiceenable 1")
server_cmd("sv_maxunlag .5")
server_cmd("sv_aim 0")
server_cmd("sv_airaccelerate 10")
server_cmd("sv_airmove 1")
server_cmd("sv_allowdownload 1")
server_cmd("sv_allowupload 1")
server_cmd("sv_alltalk 0")
server_cmd("sv_proxies 1")
server_cmd("sv_cheats 0")
server_cmd("sv_clienttrace 1.0")
server_cmd("sv_clipmode 0")
server_cmd("sv_contact <a href="mailto :steve@caleague. com">[email protected]</a>")
server_cmd("sv_friction 4")
server_cmd("sv_gravity 800")
server_cmd("sv_maxrate 20000")
server_cmd("sv_maxspeed 320")
server_cmd("sv_minrate 0")
server_cmd("sv_maxupdaterate 100")
server_cmd("sv_maxcmdrate 100")
server_cmd("sv_send_logos 1")
server_cmd("sv_send_resources 1")
server_cmd("sv_stepsize 18")
server_cmd("sv_stopspeed 75")
server_cmd("sv_timeout 65")
server_cmd("sv_wateraccelerate 10")
server_cmd("allow_spectators 2")
server_cmd("decalfrequency 60")
server_cmd("edgefriction 2")
server_cmd("host_framerate 0")
server_cmd("log on")
server_cmd("pausable 0")
client_print(1,print_chat, "-==-")
client_print(1,print_chat, "-===-")
client_print(0,print_chat, "-====-")
client_print(0,print_chat, "-==G==-")
client_print(0,print_chat, "-==GE==-")
client_print(0,print_chat, "-==GET==-")
client_print(0,print_chat, "-==GET R==-")
client_print(0,print_chat, "-==GET RE==-")
client_print(0,print_chat, "-==GET READ==-")
client_print(0,print_chat, "-==GET READY==-")
client_print(0,print_chat, "-=Team.PK=-")
client_print(0,print_chat, "-=Team.PK=-")
client_print(0,print_chat, "-=Team.PK=-")
client_print(0,print_chat, "-=Team.PK=-")
client_print(0,print_chat, "-=Restart #1=-")
server_cmd("sv_restart 1")
client_print(0,print_chat, "-=Restart #2=-")
server_cmd("sv_restart 1")
client_print(0,print_chat, "-=Restart #3=-")
server_cmd("sv_restart 1")
server_cmd("amx_off")
client_print(0,print_chat, "-=L=-")
client_print(0,print_chat, "-=LI=-")
client_print(0,print_chat, "-=LIV=-")
client_print(0,print_chat, "-=LIVE=-")
client_print(0,print_chat, "-=L=-")
client_print(0,print_chat, "-=LI=-")
client_print(0,print_chat, "-=LIV=-")
client_print(0,print_chat, "-=LIVE=-")
client_print(0,print_chat, "-=G=-")
client_print(0,print_chat, "-=GO=-")
client_print(0,print_chat, "=G=")
client_print(0,print_chat, "GO")
client_print(0,print_chat, "=G=")
client_print(0,print_chat, "-=G=-")
client_print(0,print_chat, "=GO=")
client_print(0,print_chat, "G")
client_print(0,print_chat, "=GO=")
client_print(0,print_chat, "-=GO=-")
client_print(0,print_chat, "HAVE FUN!")
client_print(0,print_chat, "RECORD DEMOS!!")
client_print(0,print_chat, "Made By RaYnE BITCHES!!")
return PLUGIN_HANDLED
}
I'm not very good at explaining but I hope im clear enough
to make this readable
Explanation:
Code:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
// You don't need to define these three if they are never used you have already put this info at the register_plugin()
#define PLUGIN "True Cal Config"
#define VERSION "1.0"
#define AUTHOR "RaYnE"
public plugin_init () {
register_plugin("TrueCalCONFIG", "1.0", "RaYnE")
register_concmd("amx_tcal", "calcz",ADMIN_SLAY, "Cal_CZ Config")
}
public cal (id,level,cid ) { // this func will never be called bcas you've entered "calcz" on the register_concmd()
// change this to "calcz" or change the one on register_concmd() to "cal"
if(!cmd_access(id,level,cid, 1))
{
return PLUGIN_HANDLED
}
server_cmd("mp_autokick 0")
server_cmd("mp_autocrosshair 0")
server_cmd("mp_autoteambalance 0")
server_cmd("mp_buytime .34")
server_cmd("mp_consistency 1")
server_cmd("mp_c4timer 35")
server_cmd("mp_fadetoblack 0")
server_cmd("mp_falldamage 1")
server_cmd("mp_flashlight 1")
server_cmd("mp_forcechasecam 0")
server_cmd("mp_forcecamera 2")
server_cmd("mp_footsteps 1")
server_cmd("mp_freezetime 12")
server_cmd("mp_friendlyfire 1")
server_cmd("mp_hostagepenalty 0")
server_cmd("mp_limitteams 6")
server_cmd("mp_logecho 1")
server_cmd("mp_logfile 1")
server_cmd("mp_logmessages 1")
server_cmd("mp_maxrounds 15")
server_cmd("mp_playerid 0")
server_cmd("mp_roundtime 2")
server_cmd("mp_timelimit 999")
server_cmd("mp_tkpunish 0")
server_cmd("mp_startmoney 800")
server_cmd("sv_lagpush 0")
server_cmd("sv_unlagsamples 1")
server_cmd("sv_voiceenable 1")
server_cmd("sv_maxunlag .5")
server_cmd("sv_aim 0")
server_cmd("sv_airaccelerate 10")
server_cmd("sv_airmove 1")
server_cmd("sv_allowdownload 1")
server_cmd("sv_allowupload 1 // missed ") at the end
server_cmd("sv_alltalk 0")
server_cmd("sv_proxies 1")
server_cmd("sv_cheats 0")
server_cmd("sv_clienttrace 1.0")
server_cmd("sv_clipmode 0")
server_cmd("sv_contact <a href="mailto :steve@caleague. com">[email protected]</a>")
server_cmd("sv_friction 4")
server_cmd("sv_gravity 800")
server_cmd("sv_maxrate 20000")
server_cmd("sv_maxspeed 320")
server_cmd("sv_minrate 0")
server_cmd("sv_maxupdaterate 100")
server_cmd("sv_maxcmdrate 100")
server_cmd("sv_send_logos 1")
server_cmd("sv_send_resources 1")
server_cmd("sv_stepsize 18")
server_cmd("sv_stopspeed 75")
server_cmd("sv_timeout 65")
server_cmd("sv_wateraccelerate 10")
server_cmd("allow_spectators 2")
server_cmd("decalfrequency 60")
server_cmd("edgefriction 2")
server_cmd("host_framerate 0")
server_cmd("log on")
server_cmd("pausable 0")
}
// we'll just remove these two brackets so the func acn keep on going else this would be the end of the func
{
// and the rest...
// after every "client print()" u've typed "return PLUGIN_HANDLED" wich would stop the function
// also after every "return PLUGIN_HANDLED" you've added a opening bracket but you never closed any of them
// the brackets and the "return PLUGIN_HANDLED" is not needed at all here
client_print(1,print_chat, "-==-")
return PLUGIN_HANDLED
{
client_print(1,print_chat, "-===-")
return PLUGIN_HANDLED
{
client_print(0,print_chat, "-====-")
return PLUGIN_HANDLED
{
client_print(0,print_chat, "-==G==-")
return PLUGIN_HANDLED
{
client_print(0,print_chat, "-==GE==-")
return PLUGIN_HANDLED
{
client_print(0,print_chat, "-==GET==-")
return PLUGIN_HANDLED
{
client_print(0,print_chat, "-==GET R==-")
return PLUGIN_HANDLED
{
client_print(0,print_chat, "-==GET RE==-")
return PLUGIN_HANDLED
{
client_print(0,print_chat, "-==GET READ==-")
return PLUGIN_HANDLED
{
client_print(0,print_chat, "-==GET READY==-")
return PLUGIN_HANDLED
{
client_print(0,print_chat, "-=Team.PK=-")
return PLUGIN_HANDLED
{
client_print(0,print_chat, "-=Team.PK=-")
return PLUGIN_HANDLED
{
client_print(0,print_chat, "-=Team.PK=-")
return PLUGIN_HANDLED
{
client_print(0,print_chat, "-=Team.PK=-")
return PLUGIN_HANDLED
{
client_print(0,print_chat, "-=Restart #1=-")
return PLUGIN_HANDLED
server_cmd("sv_restart 1")
client_print(0,print_chat, "-=Restart #2=-")
return PLUGIN_HANDLED
server_cmd("sv_restart 1")
{
client_print(0,print_chat, "-=Restart #3=-")
return PLUGIN_HANDLED
server_cmd("sv_restart 1")
server_cmd("amx_off")
{
client_print(0,print_chat, "-=L=-")
return PLUGIN_HANDLED
{
client_print(0,print_chat, "-=LI=-")
return PLUGIN_HANDLED
{
client_print(0,print_chat, "-=LIV=-")
return PLUGIN_HANDLED
{
client_print(0,print_chat, "-=LIVE=-")
return PLUGIN_HANDLED
{
client_print(0,print_chat, "-=L=-")
return PLUGIN_HANDLED
{
client_print(0,print_chat, "-=LI=-")
return PLUGIN_HANDLED
{
client_print(0,print_chat, "-=LIV=-")
return PLUGIN_HANDLED
{
client_print(0,print_chat, "-=LIVE=-")
return PLUGIN_HANDLED
{
client_print(0,print_chat, "-=G=-")
return PLUGIN_HANDLED
{
client_print(0,print_chat, "-=GO=-")
return PLUGIN_HANDLED
{
client_print(0,print_chat, "=G=")
return PLUGIN_HANDLED
{
client_print(0,print_chat, "GO")
return PLUGIN_HANDLED
{
client_print(0,print_chat, "=G=")
return PLUGIN_HANDLED
{
client_print(0,print_chat, "-=G=-")
return PLUGIN_HANDLED
{
client_print(0,print_chat, "=GO=")
return PLUGIN_HANDLED
{
client_print(0,print_chat, "G")
return PLUGIN_HANDLED
{
client_print(0,print_chat, "=GO=")
return PLUGIN_HANDLED
{
client_print(0,print_chat, "-=GO=-")
return PLUGIN_HANDLED
{
client_print(0,print_chat, "HAVE FUN!")
return PLUGIN_HANDLED
{
client_print(0,print_chat, "RECORD DEMOS!!")
return PLUGIN_HANDLED
{
client_print(0,print_chat, "Made By RaYnE BITCHES!!")
return PLUGIN_HANDLED
//finally no closing bracket to end the function
|
|