AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   help (https://forums.alliedmods.net/showthread.php?t=20011)

3gg1 10-30-2005 13:08

help
 
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 :roll:

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

ty -3gg1

Hawk552 10-30-2005 13:19

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 }

3gg1 10-30-2005 13:30

err what do i do with this?? :oops: :oops:

Hawk552 10-30-2005 13:31

http://forums.alliedmods.net/showthread.php?t=6512

3gg1 10-30-2005 13:44

lol too complicated to me :cry:

Hawk552 10-30-2005 13:47

Well, don't just assume it takes 2 hours to learn how to script.


All times are GMT -4. The time now is 23:58.

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