Raised This Month: $ Target: $400
 0% 

[Help] Iam new and i need FULL CODE for example


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
cZGame
Junior Member
Join Date: Aug 2008
Old 08-10-2008 , 17:05   [Help] Iam new and i need FULL CODE for example
Reply With Quote #1

Hey!
iam new ;]
My friend says i need to ask that cuz its easy (Hey say ) And i can learn from it what i need to make what iam wanna

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...
cZGame is offline
Nur56
Member
Join Date: Apr 2007
Old 08-11-2008 , 03:32   Re: [Help] Iam new and i need FULL CODE for example
Reply With Quote #2

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.
Nur56 is offline
cZGame
Junior Member
Join Date: Aug 2008
Old 08-11-2008 , 05:15   Re: [Help] Iam new and i need FULL CODE for example
Reply With Quote #3

But i wanna make it by my self =\
cZGame is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 08-11-2008 , 05:23   Re: [Help] Iam new and i need FULL CODE for example
Reply With Quote #4

PHP Code:
#include <amxmodx>

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

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

__________________
xPaw is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 08-11-2008 , 05:49   Re: [Help] Iam new and i need FULL CODE for example
Reply With Quote #5

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")

__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
cZGame
Junior Member
Join Date: Aug 2008
Old 08-12-2008 , 04:42   Re: [Help] Iam new and i need FULL CODE for example
Reply With Quote #6

I compild it..
i wanna test it
where i need to put that?
and i need to link the metamode to that too...
cZGame is offline
Reply


Thread Tools
Display Modes

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:14.


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