Raised This Month: $ Target: $400
 0% 

Need help whit script!


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
exelz
Member
Join Date: Oct 2006
Old 07-04-2007 , 15:54   Need help whit script!
Reply With Quote #1

I am working on a plugin for my server where ppl can type:
/server - server info
/buyxp - info how to buy xp
/rules - server rules
/motd - to see motd

Questions:

1.!i need to know command that server will automaticaly say(every 3min):
"Type /server - server info"
"Type /buyxp - how to buy xp"
"Type /rules - server rules"
"Type /motd - see MOTD"

2.How can i make so when player types /buyxp then it types in chat:
"To buy Xp conntact whit Admin!"

+karma for helping me!

Exelz
__________________

Last edited by exelz; 07-04-2007 at 15:58.
exelz is offline
flyeni6
Senior Member
Join Date: Jun 2006
Location: CAli
Old 07-04-2007 , 16:28   Re: Need help whit script!
Reply With Quote #2

here u go
PHP Code:
 
#include <amxmodx>
#include <amxmisc>
 
#define PLUGIN "New Plugin"
#define VERSION "1.0"
#define AUTHOR "Author"
 
public plugin_init() 
{
      
register_plugin(PLUGINVERSIONAUTHOR)
      
register_clcmd("say /buyxp","cmdbuyxp")
}
 
public 
client_putinserver(id)
{
      
set_task(180.0"announce"id,_,_,"b")//180 seconds = 3min
}
public 
announce(id)
{
      
client_print(0,print_chat,"Type /server to view the server info")
      
client_print(0,print_chat,"Type /buyxp to learn how to buy xp")
      
client_print(0,print_chat,"Type /rules to view the rules")
      
client_print(0,print_chat,"Type /motd to view the Message of the Day")
}
 
public 
cmdbuyxp(id)
{
      
client_print(id,print_chat,"To buy Xp conntact whit Admin!")

__________________


Last edited by flyeni6; 07-04-2007 at 16:35.
flyeni6 is offline
Send a message via AIM to flyeni6
Deviance
Veteran Member
Join Date: Nov 2004
Location: Sweden
Old 07-04-2007 , 16:30   Re: Need help whit script!
Reply With Quote #3

Quote:
Originally Posted by exelz View Post
1.!i need to know command that server will automaticaly say(every 3min):
"Type /server - server info"
"Type /buyxp - how to buy xp"
"Type /rules - server rules"
"Type /motd - see MOTD"
Code:
#include <amxmodx>

public plugin_init()
{
	register_plugin("", "", "")
	set_task(180.0, "show_ad", _, _, _, "b")
}

public show_ad()
{
	client_print(0, print_chat, "Type /server - server info")
	client_print(0, print_chat, "Type /buyxp - how to buy xp")
	client_print(0, print_chat, "Type /rules - server rules")
	client_print(0, print_chat, "Type /motd - see MOTD")
}
Quote:
Originally Posted by exelz View Post
2.How can i make so when player types /buyxp then it types in chat:
"To buy Xp conntact whit Admin!"
Code:
#include <amxmodx>

public plugin_init()
{
	register_plugin("", "", "")
	register_clcmd("say /buyxp", "cmd_info")
}

public cmd_info(id)
{
	client_print(id, print_chat, "To buy Xp conntact whit Admin!")
}

Last edited by Deviance; 07-05-2007 at 15:40.
Deviance is offline
exelz
Member
Join Date: Oct 2006
Old 07-05-2007 , 03:17   Re: Need help whit script!
Reply With Quote #4

Ok ty very much flyeni6 and deviance!!! +karma for you!(flyeni6 and deviance!)
__________________

Last edited by exelz; 07-05-2007 at 05:40.
exelz is offline
Rolnaaba
Veteran Member
Join Date: May 2006
Old 07-05-2007 , 14:47   Re: Need help whit script!
Reply With Quote #5

deviance yours makes it show every 3 seconds...
__________________
DO NOT PM me about avp mod.
Rolnaaba is offline
Deviance
Veteran Member
Join Date: Nov 2004
Location: Sweden
Old 07-05-2007 , 15:41   Re: Need help whit script!
Reply With Quote #6

Quote:
Originally Posted by Rolnaaba View Post
deviance yours makes it show every 3 seconds...
I was tired, updated.
Deviance is offline
Old 07-05-2007, 16:15
flyeni6
This message has been deleted by flyeni6.
Rolnaaba
Veteran Member
Join Date: May 2006
Old 07-05-2007 , 17:17   Re: Need help whit script!
Reply With Quote #8

ya, you better update it!!


ok sorry lol I couldnt help it...
__________________
DO NOT PM me about avp mod.
Rolnaaba 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 21:31.


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