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

client_print receive command


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
anderpp
Junior Member
Join Date: Feb 2018
Old 03-13-2018 , 17:05   client_print receive command
Reply With Quote #1

Before starting the competition the plugin executes the following command:
client_print (id, print_chat, "[attention] %L", id, "MSG_COMP12");

Where MSG_COMP12 = "will start in 30 seconds".

My question.
Is it possible for the server to send this message to players who are alive and online, after 30 seconds these players execute the -attack command?
anderpp is offline
instinctpt1
Senior Member
Join Date: Dec 2016
Location: Chandigarh, India
Old 03-14-2018 , 00:20   Re: client_print receive command
Reply With Quote #2

For the 1st Part - Yes it is Possible
Here's How :
PHP Code:
new players[32], numx
get_players
(playersnum"a")
for(new 
i=0;i<num;i++)
{
    
players[i]
    
client_print (idprint_chat"[attention] %L"id"MSG_COMP12")

For 2nd Question - " Why you want them to execute -attack ?? "

Last edited by instinctpt1; 03-14-2018 at 00:28.
instinctpt1 is offline
anderpp
Junior Member
Join Date: Feb 2018
Old 03-14-2018 , 11:38   Re: client_print receive command
Reply With Quote #3

this is mod.

some players bug the competition

so I need that after this message the players can not attack
anderpp is offline
instinctpt1
Senior Member
Join Date: Dec 2016
Location: Chandigarh, India
Old 03-14-2018 , 11:58   Re: client_print receive command
Reply With Quote #4

But i dont think -attack will block complete attack
If u want to block the attack completely you can try something like this : https://forums.alliedmods.net/showpo...34&postcount=9

Hope it helps
instinctpt1 is offline
anderpp
Junior Member
Join Date: Feb 2018
Old 03-14-2018 , 12:37   Re: client_print receive command
Reply With Quote #5

Quote:
Originally Posted by instinctpt1 View Post
For the 1st Part - Yes it is Possible
Here's How :
PHP Code:
new players[32], numx
get_players
(playersnum"a")
for(new 
i=0;i<num;i++)
{
    
players[i]
    
client_print (idprint_chat"[attention] %L"id"MSG_COMP12")

For 2nd Question - " Why you want them to execute -attack ?? "
But in this example run through all the players.

I want the action after the message. You can give me an example of this?

server_print msg {


}
anderpp is offline
instinctpt1
Senior Member
Join Date: Dec 2016
Location: Chandigarh, India
Old 03-14-2018 , 13:27   Re: client_print receive command
Reply With Quote #6

Bro what i gave is exactly what you said

It doesnt run through all players
It runs through ALIVE PLAYERS
instinctpt1 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 04:23.


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