Raised This Month: $51 Target: $400
 12% 

[CS:GO] Poke players


Post New Thread Reply   
 
Thread Tools Display Modes
Darkness_
Veteran Member
Join Date: Nov 2014
Old 11-13-2015 , 18:17   Re: [CS:GO] Poke players
Reply With Quote #11

There's no need for this to be a php file. You can still retrieve the URL parameter(s) using simple Javascript. If it is written in pure Javascript then people can host the page on their own web space so they are no longer dependent on the uptime of your website.

Here's some code snippets to get URL parameters using Javascript.

Here, I wrote it for you. You can get button.jpg here

Spoiler

Last edited by Darkness_; 11-13-2015 at 18:32.
Darkness_ is offline
boomix
Senior Member
Join Date: May 2015
Location: Latvia
Old 11-13-2015 , 19:15   Re: [CS:GO] Poke players
Reply With Quote #12

Quote:
Originally Posted by Darkness_ View Post
There's no need for this to be a php file. You can still retrieve the URL parameter(s) using simple Javascript. If it is written in pure Javascript then people can host the page on their own web space so they are no longer dependent on the uptime of your website.

Here's some code snippets to get URL parameters using Javascript.

Here, I wrote it for you. You can get button.jpg here

Spoiler
I think there is no need to only use javascript, as 99% of web hosts support php files. But of course, if anyone want to use html, then they can use your version.
boomix is offline
Cipop
Member
Join Date: Sep 2014
Old 11-13-2015 , 22:33   Re: [CS:GO] Poke players
Reply With Quote #13

Quote:
Originally Posted by NickischLP View Post
Would be cool if you can add the sound from teamspeak: "Hey wake up"
Hey there, made a link with the "Hey wake up" sound included! I coudn't test it better because everytime i get "Player not found".
http://broteambrasil.xyz/etcs/poke/r...index.php?t=%s
__________________



Last edited by Cipop; 11-13-2015 at 22:38.
Cipop is offline
TheDiamant953
Member
Join Date: Jan 2013
Old 11-14-2015 , 21:12   Re: [CS:GO] Poke players
Reply With Quote #14

If the player is dead, i can't poke him.
TheDiamant953 is offline
8guawong
AlliedModders Donor
Join Date: Dec 2013
Location: BlackMarke7
Old 11-15-2015 , 09:00   Re: [CS:GO] Poke players
Reply With Quote #15

Quote:
Originally Posted by TheDiamant953 View Post
If the player is dead, i can't poke him.
can any1 confirm this?
i'm away from my computer so can't check
__________________
8guawong is offline
last_hope
Senior Member
Join Date: Dec 2011
Old 11-15-2015 , 10:11   Re: [CS:GO] Poke players
Reply With Quote #16

Quote:
Originally Posted by 8guawong View Post
can any1 confirm this?
i'm away from my computer so can't check
Change COMMAND_FILTER_ALIVE to COMMAND_FILTER_CONNECTED.
__________________

Last edited by last_hope; 11-15-2015 at 10:22.
last_hope is offline
Send a message via ICQ to last_hope
poel
Veteran Member
Join Date: Mar 2013
Old 11-15-2015 , 14:33   Re: [CS:GO] Poke players
Reply With Quote #17

I dont have any MOTD....
poel is offline
boomix
Senior Member
Join Date: May 2015
Location: Latvia
Old 11-17-2015 , 07:14   Re: [CS:GO] Poke players
Reply With Quote #18

Quote:
Originally Posted by poel View Post
I dont have any MOTD....
Check that you don't have "cl_disablehtmlmotd 1". If it is 1, then change it to 0.
__________________
boomix is offline
poel
Veteran Member
Join Date: Mar 2013
Old 11-20-2015 , 13:37   Re: [CS:GO] Poke players
Reply With Quote #19

Quote:
Originally Posted by boomix View Post
Check that you don't have "cl_disablehtmlmotd 1". If it is 1, then change it to 0.
Yep, same.

Weird. Thks anyway.
poel is offline
good_live
AlliedModders Donor
Join Date: Oct 2013
Old 02-14-2016 , 16:04   Re: [CS:GO] Poke players
Reply With Quote #20

Plugin works fine. But there should be a Cvar for the URL and i dont see any reason, why your checking for Alive Players at:

Code:
	if ((target_count = ProcessTargetString(
			user,
			client,
			target_list,
			MAXPLAYERS,
			COMMAND_FILTER_ALIVE,
			target_name,
			sizeof(target_name),
			tn_is_ml)) <= 0)
Thanks for your work

Last edited by good_live; 02-14-2016 at 16:04.
good_live 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 19:02.


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