Raised This Month: $ Target: $400
 0% 

Advertising in the server


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
anupm
Senior Member
Join Date: May 2010
Old 12-27-2010 , 02:16   Advertising in the server
Reply With Quote #1

Hi ,

I have one custom plugin . Now i want to add one function to it . Like whenever somebody connects it will show him message like " Welcome to the server , enjoy the game "

Can somebidy please help me on how to do it ?

Thanks and regards,
Anupam
anupm is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 12-27-2010 , 07:48   Re: Advertising in the server
Reply With Quote #2

PHP Code:
#include <amxmodx>

public client_putinserver(id)
    
set_task(15.0"TaskShowMessage"id);

public 
TaskShowMessage(id)
{
    if(
is_user_connected(id))
        
client_print(idprint_chat"Welcome to the server, enjoy the game!");

__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 12-27-2010 , 07:56   Re: Advertising in the server
Reply With Quote #3

If you just send client_print you don't have to check if user is connected, native won't send any error nor try to print message.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
ANTICHRISTUS
kingdom of weird stuff
Join Date: Jun 2010
Location: My kingdom is not in thi
Old 12-27-2010 , 08:05   Re: Advertising in the server
Reply With Quote #4

http://forums.alliedmods.net/showthread.php?t=91217
__________________
ANTICHRISTUS is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 12-27-2010 , 09:28   Re: Advertising in the server
Reply With Quote #5

Quote:
Originally Posted by ConnorMcLeod View Post
If you just send client_print you don't have to check if user is connected, native won't send any error nor try to print message.
Good to know, tnx
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
anupm
Senior Member
Join Date: May 2010
Old 12-28-2010 , 06:02   Re: Advertising in the server
Reply With Quote #6

Thanks all ... Actually what my concern is its a custom made plugin and there is a chance that somebody can get it from the hosting . So what I want is I will put my server's advertisement so that nobody else can use that .
anupm is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 12-28-2010 , 06:52   Re: Advertising in the server
Reply With Quote #7

How do you mean ?
Making an advertisement plugin is very simple, i don't understand what needs to be private about it.
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
anupm
Senior Member
Join Date: May 2010
Old 12-28-2010 , 07:02   Re: Advertising in the server
Reply With Quote #8

Quote:
Originally Posted by drekes View Post
How do you mean ?
Making an advertisement plugin is very simple, i don't understand what needs to be private about it.
The advertising thing is the addition .

See I have a plugin for which I paid . So I want to keep it private . Thats why in my every server i will use the amxx file .But if the plugin is leaked then i cant do anything.
But if it advertise like welcome to (then my servername ) and then even if my plugin got leaked still it will advertise my server . So for that reason others will not use it .

So if anybody of you can help me in building the advertising part then i will be very thankful to you guys .

Thanks and regards,
Anuapm
anupm is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 12-28-2010 , 07:20   Re: Advertising in the server
Reply With Quote #9

Add an ip check in the plugin and if the ip is not allowed, turn it off.
Or find other ways.
Advertising is just useless.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
anupm
Senior Member
Join Date: May 2010
Old 12-29-2010 , 02:15   Re: Advertising in the server
Reply With Quote #10

Quote:
Originally Posted by ConnorMcLeod View Post
Add an ip check in the plugin and if the ip is not allowed, turn it off.
Or find other ways.
Advertising is just useless.
I think that will be too complex for me .. So anybody of you please help me for this advertising thing .
anupm 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:03.


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