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=84078)

Touho 01-20-2009 05:58

Help
 
I am noob and i need help. I need a plugin, if someone write /admin then it shows my name or something? Can somebody do this plugin to me?

ianglowz 01-20-2009 06:04

Re: Help
 
1 Attachment(s)
PHP Code:

/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "Admin"
#define VERSION "1.0"
#define AUTHOR "ianglowz"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_clcmd("say /admin","adminname")
}

public 
adminname()
{
    
client_print(print_chat "The admin of this server is Touho")    


Hope help you.Not tested
Hope work.

:)

Touho 01-20-2009 08:26

Re: Help
 
Quote:

Originally Posted by ianglowz (Post 747059)
PHP Code:

/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "Admin"
#define VERSION "1.0"
#define AUTHOR "ianglowz"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_clcmd("say /admin","adminname")
}

public 
adminname()
{
    
client_print(print_chat "The admin of this server is Touho")    


Hope help you.Not tested
Hope work.

:)

How i can compile? "Pawn compiler not found. Please check your setings and try again."

xPaw 01-20-2009 08:36

Re: Help
 
PHP Code:

#include <amxmodx>

public plugin_init() {
    
register_clcmd("say /admin","cmdShowmyName");
}

public 
cmdShowmyNameid ) {
    new 
szName[32];
    
get_user_name(idszName31);
    
    if( 
get_user_flags(id) & ADMIN_BAN )
        
client_print(0print_chat"* Your name is %s, and you are admin."szName);
    else
        
client_print(0print_chat"* Your name is %s."szName);



Touho 01-20-2009 08:52

Re: Help
 
Thanks but i dont need that. How i can save ianglowz`s source code to amxx?

ianglowz 01-20-2009 09:16

Re: Help
 
Quote:

Originally Posted by Touho (Post 747114)
Thanks but i dont need that. How i can save ianglowz`s source code to amxx?

My code was a ammx.

Touho 01-20-2009 09:28

Re: Help
 
Quote:

Originally Posted by ianglowz (Post 747121)
My code was a ammx.

I tried edit it, but how i can compile it again to ammx? I want edit it, that it says after /admin "Admins: Touho".

Dores 01-20-2009 10:37

Re: Help
 
@ianglowz: He wants to know how to compile the code.

@Touho: While in the AMXX-Studio, press F12(or go to tools -> settings), on the left you'll see "Compiler" and below it says "Compiler Settings". Click it once, and near the first line(where it says: "Compiler") there's a browse button("..."). Click it and go to cstrike(or whatever)/addons/amxmodx/scripting and double click on amxxpc.exe.
After that, if you want, you can click on the "..." next to the second line and choose where you want the compiled plugins to go to.

I hope you know how to add plugins to the server. :o

Exolent[jNr] 01-20-2009 12:14

Re: Help
 
1. As per the Global Forum Rules, your topic title must be descriptive.

2. This plugin has been made before on these forums. Search.


All times are GMT -4. The time now is 01:55.

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