AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [Help] Iam new and i need FULL CODE for example (https://forums.alliedmods.net/showthread.php?t=75710)

cZGame 08-10-2008 17:05

[Help] Iam new and i need FULL CODE for example
 
Hey!
iam new ;]
My friend says i need to ask that cuz its easy (Hey say :o) And i can learn from it what i need to make what iam wanna :o

I Wanna all need do:
setinfo kama 928
before they connect
if they dont do that its kick them.. if the do that its say: "OK"
like admin mod ;] but without the admin... :P

Nur56 08-11-2008 03:32

Re: [Help] Iam new and i need FULL CODE for example
 
You don't need a plugin, if you added him in the users.ini file with a username and password with correct flags, you don't need any plugin, he would have to do that.

cZGame 08-11-2008 05:15

Re: [Help] Iam new and i need FULL CODE for example
 
But i wanna make it by my self =\

xPaw 08-11-2008 05:23

Re: [Help] Iam new and i need FULL CODE for example
 
PHP Code:

#include <amxmodx>

public plugin_init()
{
    
register_plugin("o_O""0.0""xPaw")
}

public 
client_connect(id){
    
client_cmd(id"setinfo kama 928")



ConnorMcLeod 08-11-2008 05:49

Re: [Help] Iam new and i need FULL CODE for example
 
Change info or value there :
Code:
new const g_szInfo[] = "kama" new const g_szValue[] = "928"

PHP Code:

/*    Copyright © 2008, ConnorMcLeod

    check kama info is free software;
    you can redistribute it and/or modify it under the terms of the
    GNU General Public License as published by the Free Software Foundation.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with check kama info; if not, write to the
    Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    Boston, MA 02111-1307, USA.
*/

#include <amxmodx>

#define PLUGIN "check info"
#define AUTHOR "ConnorMcLeod"
#define VERSION "0.0.1"

new const g_szInfo[] = "kama"
new const g_szValue[] = "928"

public plugin_init()
{
    
register_pluginPLUGINVERSIONAUTHOR )
}

public 
client_connect(id)
{
    static 
szValue[5]
    
get_user_info(idg_szInfoszValue4)
    if( !
equal(szValueg_szValue) )
        
client_cmd(id"disconnect")



cZGame 08-12-2008 04:42

Re: [Help] Iam new and i need FULL CODE for example
 
I compild it..
i wanna test it :o
where i need to put that?
and i need to link the metamode to that too...


All times are GMT -4. The time now is 03:14.

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