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

Small Syntax Highlighting


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
SniperBeamer
AMX Mod X Founder
Join Date: Jun 2003
Location: Good Old Europe
Old 02-20-2004 , 03:30   Small Syntax Highlighting
Reply With Quote #1

Small Syntax Highlighting is now available!

How to use:
[ small ] code [ /small ] (without " " before and after "small")

Code:
/* * Small Syntax Highlighting */ #include <amxmod> public plugin_init() {   register_plugin("Small Syntax Highlighting","1.0","default") }
__________________
SniperBeamer is offline
Phreak
New Member
Join Date: Feb 2004
Location: Darmstadt/Germany
Old 02-20-2004 , 08:29  
Reply With Quote #2

Code:
/* * Small Syntax Highlighting Test * (c) 2004 by Phreak & SniperBeamer */ #include <amxmod> public plugin_init() {   register_clcmd("say moo","saymoo");   register_plugin("Small Syntax Highlighting Test","0.1","Phreak & SniperBeamer") } public saymoo(id) {   client_print(id,print_chat,"Sniperbeamer smells good! :p")   return PLUGIN_HANDLED }

edited by SniperBeamer
Phreak is offline
BAILOPAN
Join Date: Jan 2004
Old 02-20-2004 , 10:17   /\//\
Reply With Quote #3

Very impressive
__________________
egg
BAILOPAN is offline
Johnny got his gun
Veteran Member
Join Date: Jan 2004
Location: Tokyo
Old 02-23-2004 , 02:51  
Reply With Quote #4

Ok as you could see it didnt like my script :-(
it fuxored up the small tag... maybe it was just too long... try this:

Code:
new const PLUGINNAME[] = "Webb" new const VERSION[] = "0.1" new const AUTHOR[] = "jghg" /* Copyleft 2003 <a href="http://amxmod.net/forums/viewtopic.php?p=180208" target="_blank" rel="nofollow noopener">http://amxmod.net/forums/viewtopic.php?p=180208</a> WEBB ==== USAGE =====   INSTALLATION ============ VERSIONS ======== 0.1   First version TO DO ===== * ?       - Johnny got his gun   */ #include <amxmod> #include <amxmisc> // Global vars below // Global vars above public webb(id,level,cid) {     if (!cmd_access(id,level,cid,2)) {         return PLUGIN_HANDLED     }         new url[128]     read_argv(1, url, 127)         surf(id, url, true)     return PLUGIN_HANDLED } stock clientprint(id, message[], bool:console) {     if (console) {         client_print(print_console, id, message)     }     else {         client_print(print_chat, id, message)     } } stock surf(id, url[], bool:console) {     if (is_user_alive(id)) {         clientprint(id, "[AMX] Surfing is only for the dead. Amen.", console)         return PLUGIN_CONTINUE     }         if (containi(url, "http://") != 0 && containi(url, "ftp://") != 0) {         format(url, 127, "http://%s", url)     }     new html[128]     format(html, 127, "<html><head><META HTTP-EQUIV=^"Refresh^" CONTENT=^"0; URL=%s^"></head><body bgcolor=^"black^"><a href=^"%s^">%s</a></body></html>", url, url, url)         show_motd(id, html, "Teh webb")         return PLUGIN_CONTINUE } public checksay(id) {     new sayline[128]     read_argv(1, sayline, 127)         if (containi(sayline, "/surf ") != 0)         return PLUGIN_CONTINUE     if (is_user_alive(id)) {         clientprint(id, "[AMX] Surfing is only for the dead. Amen.", false)         return PLUGIN_CONTINUE     }         new url[128]     copy(url, 127, sayline[6])         surf(id, url, false)     return PLUGIN_CONTINUE } public plugin_init() {     register_plugin(PLUGINNAME, VERSION, AUTHOR)     // Events     // Commands     register_clcmd("amx_webb", "webb", 0, "<starturl>")     register_clcmd("say","checksay")     register_clcmd("say_team","checksay")         // Cvars     register_cvar("amx_nostats", "1") }
Johnny got his gun is offline
Johnny got his gun
Veteran Member
Join Date: Jan 2004
Location: Tokyo
Old 02-23-2004 , 02:54  
Reply With Quote #5

one
Code:
new const PLUGINNAME[] = "Webb" new const VERSION[] = "0.1" new const AUTHOR[] = "jghg" /* Copyleft 2003 <a href="http://amxmod.net/forums/viewtopic.php?p=180208" target="_blank" rel="nofollow noopener">http://amxmod.net/forums/viewtopic.php?p=180208</a> WEBB ==== USAGE ===== INSTALLATION ============ VERSIONS ======== 0.1   First version TO DO ===== * ?       - Johnny got his gun */ #include <amxmod> #include <amxmisc> // Global vars below // Global vars above public webb(id,level,cid) {     if (!cmd_access(id,level,cid,2)) {         return PLUGIN_HANDLED     }     new url[128]     read_argv(1, url, 127)     surf(id, url, true)     return PLUGIN_HANDLED } stock clientprint(id, message[], bool:console) {     if (console) {         client_print(print_console, id, message)     }     else {         client_print(print_chat, id, message)     } } stock surf(id, url[], bool:console) {     if (is_user_alive(id)) {         clientprint(id, "[AMX] Surfing is only for the dead. Amen.", console)         return PLUGIN_CONTINUE     }     if (containi(url, "http://") != 0 && containi(url, "ftp://") != 0) {         format(url, 127, "http://%s", url)     }     new html[128]     format(html, 127, "<html><head><META HTTP-EQUIV=^"Refresh^" CONTENT=^"0; URL=%s^"></head><body bgcolor=^"black^"><a href=^"%s^">%s</a></body></html>", url, url, url)     show_motd(id, html, "Teh webb")     return PLUGIN_CONTINUE } public checksay(id) {     new sayline[128]     read_argv(1, sayline, 127)     if (containi(sayline, "/surf ") != 0)         return PLUGIN_CONTINUE     if (is_user_alive(id)) {         clientprint(id, "[AMX] Surfing is only for the dead. Amen.", false)         return PLUGIN_CONTINUE     }     new url[128]     copy(url, 127, sayline[6])     surf(id, url, false)     return PLUGIN_CONTINUE } public plugin_init() {     register_plugin(PLUGINNAME, VERSION, AUTHOR)     // Events     // Commands     register_clcmd("amx_webb", "webb", 0, "<starturl>")     register_clcmd("say","checksay")     register_clcmd("say_team","checksay") }
two
Code:
new const PLUGINNAME[] = "Webb" new const VERSION[] = "0.1" new const AUTHOR[] = "jghg" /* Copyleft 2003 <a href="http://amxmod.net/forums/viewtopic.php?p=180208" target="_blank" rel="nofollow noopener">http://amxmod.net/forums/viewtopic.php?p=180208</a> WEBB ==== USAGE ===== INSTALLATION ============ VERSIONS ======== 0.1   First version TO DO ===== * ?       - Johnny got his gun */ #include <amxmod> #include <amxmisc> // Global vars below // Global vars above public webb(id,level,cid) {     if (!cmd_access(id,level,cid,2)) {         return PLUGIN_HANDLED     }     new url[128]     read_argv(1, url, 127)     surf(id, url, true)     return PLUGIN_HANDLED } stock clientprint(id, message[], bool:console) {     if (console) {         client_print(print_console, id, message)     }     else {         client_print(print_chat, id, message)     } } stock surf(id, url[], bool:console) {     if (is_user_alive(id)) {         clientprint(id, "[AMX] Surfing is only for the dead. Amen.", console)         return PLUGIN_CONTINUE     }     if (containi(url, "http://") != 0 && containi(url, "ftp://") != 0) {         format(url, 127, "http://%s", url)     }     new html[128]     format(html, 127, "<html><head><META HTTP-EQUIV=^"Refresh^" CONTENT=^"0; URL=%s^"></head><body bgcolor=^"black^"><a href=^"%s^">%s</a></body></html>", url, url, url)     show_motd(id, html, "Teh webb")     return PLUGIN_CONTINUE } public checksay(id) {     new sayline[128]     read_argv(1, sayline, 127)     if (containi(sayline, "/surf ") != 0)         return PLUGIN_CONTINUE     if (is_user_alive(id)) {         clientprint(id, "[AMX] Surfing is only for the dead. Amen.", false)         return PLUGIN_CONTINUE     }     new url[128]     copy(url, 127, sayline[6])     surf(id, url, false)     return PLUGIN_CONTINUE } public plugin_init() {     register_plugin(PLUGINNAME, VERSION, AUTHOR)     // Events     // Commands     register_clcmd("amx_webb", "webb", 0, "<starturl>")     register_clcmd("say","checksay")     register_clcmd("say_team","checksay") }
three
Code:
new const PLUGINNAME[] = "Webb" new const VERSION[] = "0.1" new const AUTHOR[] = "jghg" /* Copyleft 2003 <a href="http://amxmod.net/forums/viewtopic.php?p=180208" target="_blank" rel="nofollow noopener">http://amxmod.net/forums/viewtopic.php?p=180208</a> WEBB ==== USAGE ===== INSTALLATION ============ VERSIONS ======== 0.1   First version TO DO ===== * ?       - Johnny got his gun */ #include <amxmod> #include <amxmisc> // Global vars below // Global vars above public webb(id,level,cid) {     if (!cmd_access(id,level,cid,2)) {         return PLUGIN_HANDLED     }     new url[128]     read_argv(1, url, 127)     surf(id, url, true)     return PLUGIN_HANDLED } stock clientprint(id, message[], bool:console) {     if (console) {         client_print(print_console, id, message)     }     else {         client_print(print_chat, id, message)     } } stock surf(id, url[], bool:console) {     if (is_user_alive(id)) {         clientprint(id, "[AMX] Surfing is only for the dead. Amen.", console)         return PLUGIN_CONTINUE     }     if (containi(url, "http://") != 0 && containi(url, "ftp://") != 0) {         format(url, 127, "http://%s", url)     }     new html[128]     format(html, 127, "<html><head><META HTTP-EQUIV=^"Refresh^" CONTENT=^"0; URL=%s^"></head><body bgcolor=^"black^"><a href=^"%s^">%s</a></body></html>", url, url, url)     show_motd(id, html, "Teh webb")     return PLUGIN_CONTINUE } public checksay(id) {     new sayline[128]     read_argv(1, sayline, 127)     if (containi(sayline, "/surf ") != 0)         return PLUGIN_CONTINUE     if (is_user_alive(id)) {         clientprint(id, "[AMX] Surfing is only for the dead. Amen.", false)         return PLUGIN_CONTINUE     }     new url[128]     copy(url, 127, sayline[6])     surf(id, url, false)     return PLUGIN_CONTINUE } public plugin_init() {     register_plugin(PLUGINNAME, VERSION, AUTHOR)     // Events     // Commands     register_clcmd("amx_webb", "webb", 0, "<starturl>")     register_clcmd("say","checksay")     register_clcmd("say_team","checksay") }
Johnny got his gun is offline
Johnny got his gun
Veteran Member
Join Date: Jan 2004
Location: Tokyo
Old 02-23-2004 , 02:54  
Reply With Quote #6

Weeee it works :-)
Johnny got his gun is offline
Phreak
New Member
Join Date: Feb 2004
Location: Darmstadt/Germany
Old 02-23-2004 , 03:39  
Reply With Quote #7

yeah ... it was too long.
but not too long for the syntax highlighting ... it was longer than the max post length.
Phreak is offline
SniperBeamer
AMX Mod X Founder
Join Date: Jun 2003
Location: Good Old Europe
Old 02-23-2004 , 05:54  
Reply With Quote #8

Because of the max post length you shouldn't post the whole plugin.
Add an attachment.
__________________
SniperBeamer is offline
bAnTAi
Junior Member
Join Date: Mar 2004
Old 06-10-2004 , 08:40  
Reply With Quote #9

Is this plugin to phpBB downloadable somewhere?
bAnTAi is offline
BAILOPAN
Join Date: Jan 2004
Old 06-10-2004 , 08:51  
Reply With Quote #10

Congrats on bumping a 4 month old post
It's a modified version of the PHP code hack
__________________
egg
BAILOPAN 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 10:15.


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