Raised This Month: $32 Target: $400
 8% 

Can some1 plz help?


Post New Thread Reply   
 
Thread Tools Display Modes
rikards1
Member
Join Date: Aug 2009
Old 10-29-2009 , 08:48   Re: Can some1 plz help?
Reply With Quote #11

Yes I am
rikards1 is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 10-29-2009 , 11:17   Re: Can some1 plz help?
Reply With Quote #12

Use amx_cfg. It's a default command with AMX Mod X.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Trafalete
Senior Member
Join Date: Sep 2008
Location: Bucuresti ( Printre nori
Old 10-29-2009 , 19:46   Re: Can some1 plz help?
Reply With Quote #13

question: do you need to exec a cfg on the server or on client ?
if it's on server ... then it will work
if it's on client , the client needs the cfg before he can exec it ( obviously ), and AFAIK , cfg's can not be sent to client from server
__________________


Trafalete is offline
rikards1
Member
Join Date: Aug 2009
Old 10-30-2009 , 10:03   Re: Can some1 plz help?
Reply With Quote #14

What I want is that you type like /real and then this comes up:
////Config has been loaded////
////Real gaming...... ON////
////GL and HF!////

Last edited by rikards1; 10-30-2009 at 10:10.
rikards1 is offline
Trafalete
Senior Member
Join Date: Sep 2008
Location: Bucuresti ( Printre nori
Old 10-30-2009 , 12:50   Re: Can some1 plz help?
Reply With Quote #15

comes up where on every user's screen in chat/hud or a certain players? you need something for your clanwar server ? be more specific

PHP Code:
#include <amxmodx>

#define PLUGIN "request for /real"
#define VERSION "1.0"
#define AUTHOR "Trafalete"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
// Add your code here...
    
    
register_clcmd("say /real","real_func",ADMIN_ALL);
}

public 
real_func()
{
    
client_print(0,print_chat,"////Config has been loaded////")
    
client_print(0,print_chat,"////Real gaming...... ON////")
    
client_print(0,print_chat,"////GL and HF!////");
    
    
// here you put code for what else you want 
    // something like exec'ing a cfg on the srv
    
    
return PLUGIN_HANDLED;

__________________



Last edited by Trafalete; 10-30-2009 at 13:01.
Trafalete is offline
Xellath
Veteran Member
Join Date: Dec 2007
Location: Sweden
Old 10-30-2009 , 13:03   Re: Can some1 plz help?
Reply With Quote #16

Quote:
Originally Posted by xPaw View Post
if ( !cmd_access( iClient, iLevel, iCid, 1 ) )
Incorrect, cmd_access includes the command name in the num param. So if I use 2, the command requires one argument. ie. amx_execfile "config"
__________________
Achievements API - a simple way for you to create your OWN custom achievements!
Xellath is offline
superang
Senior Member
Join Date: Apr 2009
Location: Portugal
Old 10-30-2009 , 13:44   Re: Can some1 plz help?
Reply With Quote #17

PHP Code:
#include <amxmodx>

#define PLUGIN "Exec Config.cfg"
#define VERSION "1.0"
#define AUTHOR "Xf0X"

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_concmd"say /real""execfile"ADMIN_KICK );
    
register_concmd"say_team /real""execfile"ADMIN_KICK );
}

public 
execfile(id)
{
    
server_cmd"exec config.cfg" ); // Edit this if you wanna put another config.
    
client_print(id,print_chat,"////Config has been loaded////")
    
client_print(id,print_chat,"////Real gaming...... ON////")
    
client_print(id,print_chat,"////GL and HF!////");

Try this
See if it works xD
__________________

Last edited by superang; 10-30-2009 at 13:57.
superang is offline
Send a message via MSN to superang
rikards1
Member
Join Date: Aug 2009
Old 10-31-2009 , 08:46   Re: Can some1 plz help?
Reply With Quote #18

THANX MAN!!! (superang) It worked just like i wanted!!.... Just 1 thing... Can you make so Its like this:
////Config Has been loaded////
(1 sec pause)
////Real gaming..... (like 0.5sec pause) ON////
(1sec paus)
////GL and HF!////
rikards1 is offline
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 14:50.


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