Raised This Month: $59 Target: $400
 14% 

Find Players on GameTiger


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   General Purpose        Approver:   BAILOPAN (72)
IceMouse[WrG]
Senior Member
Join Date: Mar 2004
Old 03-21-2004 , 18:04   Find Players on GameTiger
Reply With Quote #1

This looks up a player on GameTiger
I took some code from f117bomb's "Web Browser"(Specifically to extract /findplayer from the say command)
Any suggestions welcome... Although it is impossible to join the same server as a person(You need to write down the IP), nor is it possible to pull up the specific server info from a persons name, so don't ask

BTW, it will only look up people on your mod, as it is impossible to join a server using another mod
Attached Files
File Type: sma Get Plugin or Get Source (playersearch.sma - 1783 views - 1.1 KB)
IceMouse[WrG] is offline
Send a message via AIM to IceMouse[WrG] Send a message via MSN to IceMouse[WrG] Send a message via Yahoo to IceMouse[WrG]
IceMouse[WrG]
Senior Member
Join Date: Mar 2004
Old 03-22-2004 , 22:33  
Reply With Quote #2

Now uses amxmodx.inc, as requested
IceMouse[WrG] is offline
Send a message via AIM to IceMouse[WrG] Send a message via MSN to IceMouse[WrG] Send a message via Yahoo to IceMouse[WrG]
BAILOPAN
Join Date: Jan 2004
Old 03-22-2004 , 22:42  
Reply With Quote #3

speaking of which - what happened to gametiger.net?
It was a large portal then it went down for like a week. now it's totally stripped.
__________________
egg
BAILOPAN is offline
IceMouse[WrG]
Senior Member
Join Date: Mar 2004
Old 03-23-2004 , 16:16  
Reply With Quote #4

Yes... But thats alright for this plugin... Less downloads in-game for the user, I suppose
IceMouse[WrG] is offline
Send a message via AIM to IceMouse[WrG] Send a message via MSN to IceMouse[WrG] Send a message via Yahoo to IceMouse[WrG]
FlyingMongoose
Veteran Member
Join Date: Mar 2004
Old 03-24-2004 , 23:09  
Reply With Quote #5

yo, I liked your idea, so I modified it a bit . It now has a w00t player search too. I also attempted server spy, but since that uses a lot of javascript and the Steam motd web browser engine thing won't read javascript it wouldn't work. I also don't think my say commands work...I don't know why like "/w00tfind <name>" and "/gtfind <name>".

And I don't mind the stripped down gametiger, looks better in CS motd anyway, lol.

Code:
/*
 * Playerseach 1.0 by: [SMS]FlyingMongoose | [email protected]
 * Original Code and Concept by (C) IceMouse[WrG] 2004
 *
 * Changelog 
 * 1.0 - Added w00t Player Search Support
 *           
 * w00t lookup
 * commands:
 * say /w00tfind <name>
 * amx_w00tfind <name>
 *
 * gametiger lookup
 * Commands:
 * say /gtfind <name>
 * amx_gtfind <name>
 */

#include <amxmodx>

public plugin_init()
{
	register_clcmd("say","cmdSay",0,"/gtfind <name> - Searches online for a player");
	register_clcmd("amx_gtfind","cmdFindPlayer", 0, "<name> - Searches online for a player");
	register_clcmd("say","WcmdSay",0,"/w00tfind <name> - Searches online for a player");
	register_clcmd("amx_w00tfind","WcmdFindPlayer", 0, "<name> - Searches online for a player");

}

//w00t Search
public WShowFind(id,name[])
{
	new URL[128];
	new Title[128];
	format(Title,127,"Searching for player: %s using w00t.phxx.net",name);
	while(contain(name," ") != -1)
	{
		replace(name, 49, " ", "+");
	}
	format(URL,127,"http://w00t.phxx.net/default.asp?s=Player&sString=%s&Search=W00T%21+Player+Search

",name);
	show_motd(id,URL,Title);
	return 1;
}



public WcmdFindPlayer(id)
{
	new name[50];
	read_argv(1,name,49);
	WShowFind(id,name);
	return PLUGIN_HANDLED;
}

public WcmdSay(id)
{
	new text[64], cmd[32], name[32];
	read_args(text,63);
	remove_quotes(text);
	parse(text, cmd, 31, name, 31);
		
	if(equali(cmd, "/w00tfind"))
		WShowFind(id,name);
	return PLUGIN_HANDLED;
}

// Gametiger Search
public ShowFind(id,name[])
{
	new mod[20];
	get_modname(mod,19);
	new URL[128];
	new Title[128];
	format(Title,127,"Searching for player: %s using GameTiger.net",name);
	while(contain(name," ") != -1)
	{
		replace(name, 49, " ", "+");
	}
	format(URL,127,"http://gametiger.net/search?player=%s&game=%s",name,mod);
	show_motd(id,URL,Title);
	return 1;
}

public cmdFindPlayer(id)
{
	new name[50];
	read_argv(1,name,49);
	ShowFind(id,name);
	return PLUGIN_HANDLED;
}

public cmdSay(id)
{
	new text[64], cmd[32], name[32];
	read_args(text,63);
	remove_quotes(text) 	;
	parse(text, cmd, 31, name, 31);
		 
	if(equali(cmd, "/gtfind"))
		ShowFind(id,name);
	return PLUGIN_HANDLED;
}
Attached Files
File Type: sma Get Plugin or Get Source (playersearch.sma - 1448 views - 2.2 KB)
__________________
Please do NOT PM for support.

Only ask for support in plugin threads.

TunedChaos.com - Precision Tuned Game Servers
FlyingMongoose is offline
IceMouse[WrG]
Senior Member
Join Date: Mar 2004
Old 03-24-2004 , 23:12  
Reply With Quote #6

I was going to do w00t... But its only for CS
IceMouse[WrG] is offline
Send a message via AIM to IceMouse[WrG] Send a message via MSN to IceMouse[WrG] Send a message via Yahoo to IceMouse[WrG]
FlyingMongoose
Veteran Member
Join Date: Mar 2004
Old 03-24-2004 , 23:15  
Reply With Quote #7

yeah, phxx was founded on the CS community. I wanted to do serverspy, but there's no javascript handling for HL motds yet. Though I technically had it working, it should have worked right had it been on the old serverspy system.

but would you be able to tell me why my say commands aren't working?
__________________
Please do NOT PM for support.

Only ask for support in plugin threads.

TunedChaos.com - Precision Tuned Game Servers
FlyingMongoose is offline
IceMouse[WrG]
Senior Member
Join Date: Mar 2004
Old 03-25-2004 , 10:18  
Reply With Quote #8

Yeah... I looked into them before writing this, and GameTiger was cross-mod and worked, so that made it the best choice... Even though w00t has a more friendly interface
IceMouse[WrG] is offline
Send a message via AIM to IceMouse[WrG] Send a message via MSN to IceMouse[WrG] Send a message via Yahoo to IceMouse[WrG]
SubStream
Veteran Member
Join Date: Aug 2005
Location: USA
Old 05-08-2006 , 02:33  
Reply With Quote #9

Awesome plugin I went to the last page to see what plugins there were that I haven't heard of and this is definetly a good plugin to track regs and admins to see where else they play at.
SubStream is offline
seoulxkorean
Member
Join Date: Apr 2006
Old 05-09-2006 , 18:32  
Reply With Quote #10

Is it possible to catch the URL of a motd if say the page were to redirect to another page in amxx scripting?
seoulxkorean is offline
Reply


Thread Tools
Display Modes

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 05:45.


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