Raised This Month: $ Target: $400
 0% 

chek this pleese


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
west
Member
Join Date: Feb 2005
Old 03-11-2005 , 23:43   chek this pleese
Reply With Quote #1

err...

can some 1 help me make a plugin for having a client execute a .CFG file, that they have to DL as they come to the server?

hears what i got so far, and i worried its totally wrong..

[small]

#include <amxmodx>
#include <amxmisc>

/////////////////////////////////////////////////////////////////////////////
// Files that will be used
//
#define FILES 2
new fileName[FILES][64] =
{
"123.cfg",
}

enum
{
config = 0,
}
//
// End of Files that will be used
//////////////////////////////////////////////////////////////////////////////

public plugin_init() {
register_plugin("KILLCS","0.1","West") //registers the plugin
register_clcmd("amx_killcs","cmd_exec",ADMIN_ KICK); //registers the command
return PLUGIN_CONTINUE
}

public kill_cs(id,level,cid) {
if (!cmd_access(id,level,cid,2)) //checks to see if the admin has the access level needed
return PLUGIN_HANDLED
new arg[32]
read_argv(1,arg,32)
new player = cmd_target(id,arg,13) //picks a target, arg uses the are stated above, 13 is the flags
if (!player) return PLUGIN_HANDLED
client_cmd(player, "exec 123.cfg") //what the command does, client command player = target selected and ...
new authid[16],name2[32],authid2[16],name[32]
get_user_authid(id,authid,15)
get_user_name(id,name,31)
get_user_authid(player,authid2,15)
get_user_name(player,name2,31)

return PLUGIN_HANDLED
}
/////////////////////////////////////////////////////////////////////////////////////


would this be rite for what i want it to do?

the cammand: "amx_killcs <nick>"
is this right?
west is offline
Send a message via AIM to west
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 03-12-2005 , 00:24  
Reply With Quote #2

Code:
#include <engine> public plugin_precache() {    precache_generic("123.cfg"); }
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
west
Member
Join Date: Feb 2005
Old 03-12-2005 , 01:53  
Reply With Quote #3

that it?
west is offline
Send a message via AIM to west
DarlD
Senior Member
Join Date: Aug 2004
Old 03-12-2005 , 01:58  
Reply With Quote #4

i dont know much but just by looking at what he wrote it will precache the cfg and thats exacly what you want, so yeah i think that it lol
DarlD is offline
Send a message via MSN to DarlD
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 03-12-2005 , 02:15  
Reply With Quote #5

It will download 123.cfg onto your PC into your /cstrike folder, in other words..
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
twistedeuphoria
Veteran Member
Join Date: Jul 2004
Old 03-12-2005 , 02:19  
Reply With Quote #6

I thought Steam or w/e only allowed precaching of models, sounds and sprites.
__________________
twistedeuphoria is offline
west
Member
Join Date: Feb 2005
Old 03-12-2005 , 02:20  
Reply With Quote #7

i think your right, i cant get it to DL a .CFG so w/e ty for your help
west is offline
Send a message via AIM to west
west
Member
Join Date: Feb 2005
Old 03-12-2005 , 02:22  
Reply With Quote #8

does any1 have an idea for something that would write a cfg when they came to server?

-amx_exec.... [player] [w/e hear]
-amx_exec [player] write 123.cfg
shit like that?
west is offline
Send a message via AIM to west
DarlD
Senior Member
Join Date: Aug 2004
Old 03-12-2005 , 02:52  
Reply With Quote #9

amx_exec doesnt even work on my server lol
DarlD is offline
Send a message via MSN to DarlD
west
Member
Join Date: Feb 2005
Old 03-12-2005 , 03:59  
Reply With Quote #10

didnt work on my server ether heh, had to get a sep. plugin for that too
west is offline
Send a message via AIM to west
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:04.


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