Raised This Month: $ Target: $400
 0% 

Help with my plugin


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Ha1M
New Member
Join Date: Jul 2011
Old 08-08-2011 , 00:56   Help with my plugin
Reply With Quote #1

Hello
i try to create plugin
this is my first plugin
this is the code :
PHP Code:
#include <amxmodx>

#define PLUGIN "map"
#define VERSION "0.1"
#define AUTHOR "_Ha1M_/Wait"


public plugin_init()
{
register_plugin(PLUGINVERSIONAUTHOR)
register_clcmd"say /map""MAP" )
register_clcmd"say !map""MAP" )
}

public 
MAP(id)
{
if ( !(
get_user_flags(id)&ADMIN_CVAR))
return 
PLUGIN_CONTINUE;
server_cmd("changelevel %s")
client_print0print_chat"Map change to %s");
return 
PLUGIN_HANDLED;

when i write "!map" or "!map de_dust2"
Nothing happens.
what can i do?
and sorry for my english,
Thanks, Haim.

Last edited by Ha1M; 08-08-2011 at 06:12.
Ha1M 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 03:23.


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