Raised This Month: $ Target: $400
 0% 

what's wrong here?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Kamikizzle
Member
Join Date: Aug 2004
Old 09-30-2004 , 20:54   what's wrong here?
Reply With Quote #1

my code isn't working....it's just to make an motd pop up and open a file.....but it won't open the motd

Code:
/**********************************************
* MapView
* By: Kamikizzle
*
* Commands: ADMIN_ACCESS_A
*  kami_maplist
*
**********************************************/

#include <amxmodx>
#include <amxmisc>
#include <amxconst>
#include <cstrike>

// File
new g_szFileMaps[] = "/addons/amxmodx/configs/maps.htm"

// Registers
public plugin_init()
{
	register_plugin("Maplist","1.0","Kamikizzle")
	register_clcmd("kami_maplist","ClCmd_kami_maplist",ADMIN_MAP,"- Displays all of maps on the server (MOTD)")
}

public ClCmd_kami_maplist(id,lvl,cid)
{
	if( !cmd_access(id,lvl,cid,1) )
	{
	show_motd(id,g_szFileMaps,"Maps On Server")
	return PLUGIN_HANDLED
	}
	else{
	}
}
yes, i kno there r things like this, but i wanna script my own for practice, and it sure seems like i need it
Kamikizzle is offline
 



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 17:18.


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