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

Vip


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
AlinT
Member
Join Date: Jun 2020
Location: Romania
Old 07-15-2020 , 16:01   Vip
Reply With Quote #1

Hi, does anyone have any idea why the VIP message is repeated at the beginning of the round 5.6 times?
PHP Code:
#include < amxmodx >
#include < amxmisc >
#include < cstrike >

public plugin_init() {

register_clcmd("say /vip","ShowMotd")
}

public 
ShowMotd(id)
{
 
show_motd(id"addons/amxmodx/configs/vip.html")
}
public 
client_authorized(id)
{
 
set_task(30.0"PrintText" ,id)
}
public 
PrintText(id)
{
 
client_print_color(0,1"^3[CSGO root] ^4Tasteaza in chat ^3/vip ^4pentru a vedea beneficiile vip-ului")


Last edited by AlinT; 07-15-2020 at 16:02.
AlinT is offline
Send a message via AIM to AlinT
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 07-15-2020 , 16:10   Re: Vip
Reply With Quote #2

Because you're setting the task each time a player joins?
__________________

Last edited by OciXCrom; 07-15-2020 at 16:11.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
ZaX
Senior Member
Join Date: Jan 2015
Old 07-15-2020 , 16:19   Re: Vip
Reply With Quote #3

Each time someone joins the server, the message will show to everyone.

client_print_color(0, ....
to
client_print_color(id, ....
If you want to show it to the connected player

Last edited by ZaX; 07-15-2020 at 16:20.
ZaX is offline
AlinT
Member
Join Date: Jun 2020
Location: Romania
Old 07-15-2020 , 17:01   Re: Vip
Reply With Quote #4

Quote:
Originally Posted by ZaX View Post
Each time someone joins the server, the message will show to everyone.

client_print_color(0, ....
to
client_print_color(id, ....
If you want to show it to the connected player
The problem is that it appears to me many times when I enter the server ... it is repeated 6 times, is there an error in it or why does it do so, or is there another variant of the plugin that only shows once? ... it does so only when connected then repeats normally!
AlinT is offline
Send a message via AIM to AlinT
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 07-15-2020 , 17:41   Re: Vip
Reply With Quote #5

Quote:
Originally Posted by AlinT View Post
The problem is that it appears to me many times when I enter the server ... it is repeated 6 times, is there an error in it or why does it do so, or is there another variant of the plugin that only shows once? ... it does so only when connected then repeats normally!
Did you read the previous comment? The message displays for ALL players every time a player joins the server. Of course it will repeat it X times in the beginning of the map depending on the number of players.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
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 15:35.


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