Raised This Month: $ Target: $400
 0% 

help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
3gg1
Junior Member
Join Date: Sep 2005
Old 10-30-2005 , 13:08   help
Reply With Quote #1

how can i do a plugin that when a player says something for exaple /admin , he will be shown all the admins. or /maps he will be shown all the maps on the server. a plugin that i can write this kind of things.

PLEASE! very easy steps im a nublet

ps. can i use the amx edit for it or what program do i use?

ty -3gg1
3gg1 is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 10-30-2005 , 13:19  
Reply With Quote #2

Code:
// Let's include some stuff #include <amxmodx> #include <amxmisc> // This function is called when the plugin starts, it basically registers the stuff public plugin_init() {     // Let's register the plugin     register_plugin("Test (plugin name)","1.0 (version)","Hawk552 (author)")         // "command","function to call"     register_clcmd("amx_admins","showadmins") } public showadmins(id,level,cid) {     // If the person does not have access (everyone does), or did not supply     // only one argument, stop, and tell them how to use it.     if(!cmd_access(id,level,cid,1))     {         return PLUGIN_CONTINUE     }         // Declare our variables     new i, adminsonline         // Simple for loop, cycles through players     for(i = 0;i <= 32;i++)     {         // if the user is an admin         if(is_user_admin(i))         {             // increase the variable adminsonline             adminsonline++         }     }         // print in their console how many admins there are online     client_print(id,print_console,"[AMXX] There are currently %i admins online.",adminsonline)         return PLUGIN_CONTINUE }
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
3gg1
Junior Member
Join Date: Sep 2005
Old 10-30-2005 , 13:30  
Reply With Quote #3

err what do i do with this??
3gg1 is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 10-30-2005 , 13:31  
Reply With Quote #4

http://forums.alliedmods.net/showthread.php?t=6512
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
3gg1
Junior Member
Join Date: Sep 2005
Old 10-30-2005 , 13:44  
Reply With Quote #5

lol too complicated to me
3gg1 is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 10-30-2005 , 13:47  
Reply With Quote #6

Well, don't just assume it takes 2 hours to learn how to script.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
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 23:58.


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