AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   Very Important Question (https://forums.alliedmods.net/showthread.php?t=190514)

Ax3l 07-19-2012 13:36

Very Important Question
 
I want to know how can i make one plugin , that if 1 player type /vot in chat to count here -> http://www.csservers.ro/evidenta/war3ft.indungi.ro ( where says VOTEAZA )

I tried something like this but didn't work

Code:

register_clcmd( "say /vot" , "CmdVot" );

public CmdVot( iPlayer )
{
        show_motd( iPlayer , "http://www.csservers.ro/voteaza/war3ft.indungi.ro" );
}

But when i put it on server , and i wrote /vot , it appear motd with that page , but instead of voting didn't do anything

I want to know if is possible 'cuz i know another website that made 1 plugin that count voting ( but they don't give the .sma )

Thanks in advance

OvidiuS 07-19-2012 14:27

Re: Very Important Question
 
Quote:

Originally Posted by Ax3l (Post 1753792)
I want to know how can i make one plugin , that if 1 player type /vot in chat to count here -> http://www.csservers.ro/evidenta/war3ft.indungi.ro ( where says VOTEAZA )

I tried something like this but didn't work

Code:

register_clcmd( "say /vot" , "CmdVot" );

public CmdVot( iPlayer )
{
        show_motd( iPlayer , "http://www.csservers.ro/voteaza/war3ft.indungi.ro" );
}

But when i put it on server , and i wrote /vot , it appear motd with that page , but instead of voting didn't do anything

I want to know if is possible 'cuz i know another website that made 1 plugin that count voting ( but they don't give the .sma )

Thanks in advance

It is possible. I made for this one http://www.gametracker.ro/servere/ ;)
You need direct link :S

Ax3l 07-19-2012 14:34

Re: Very Important Question
 
This is direct link -> http://www.csservers.ro/voteaza/war3ft.indungi.ro

And when i put it like this :

Code:

public CmdVot( iPlayer )
{
  show_motd( iPlayer , "http://www.csservers.ro/voteaza/war3ft.indungi.ro" );
}

Don't vote , it say to me "no referrer" when i type /vot in cs

EDIT : If i put .html in configs , or directly show_motd - link , it always say : "no referer" . Know someone why ? What i need to do to vote .


All times are GMT -4. The time now is 22:11.

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