Raised This Month: $ Target: $400
 0% 

Show message every 5 seconds...


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
BaD CopY
Senior Member
Join Date: Oct 2014
Location: Home
Old 05-10-2015 , 13:09   Show message every 5 seconds...
Reply With Quote #1

Can anyone create code who shows chat message every 5 seconds...
BaD CopY is offline
Send a message via Yahoo to BaD CopY Send a message via Skype™ to BaD CopY
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 05-10-2015 , 13:20   Re: Show message every 5 seconds...
Reply With Quote #2

Yes. So, what is your plugin request?
__________________
fysiks is offline
BaD CopY
Senior Member
Join Date: Oct 2014
Location: Home
Old 05-10-2015 , 13:49   Re: Show message every 5 seconds...
Reply With Quote #3

Request to make thet simple plugin, who shows this message every five seconds - (example): "By typing /rs you can reset your score to 0"
BaD CopY is offline
Send a message via Yahoo to BaD CopY Send a message via Skype™ to BaD CopY
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 05-10-2015 , 13:57   Re: Show message every 5 seconds...
Reply With Quote #4

That should be programmed into the plugin that provides that functionality.
__________________
fysiks is offline
BaD CopY
Senior Member
Join Date: Oct 2014
Location: Home
Old 05-10-2015 , 14:01   Re: Show message every 5 seconds...
Reply With Quote #5

But thets all I want... if you want to help me more, check my other request )
BaD CopY is offline
Send a message via Yahoo to BaD CopY Send a message via Skype™ to BaD CopY
indraraj striker
Veteran Member
Join Date: Mar 2014
Location: Under the water
Old 05-11-2015 , 03:58   Re: Show message every 5 seconds...
Reply With Quote #6

here you go:
PHP Code:
#include <amxmodx>

public client_putinserver(id)
{
set_task(5.0,"Show_message_in_every_5_sec",id,_,_,"b");
}

/* Calls function on specified time.
* Flags:
* "a" - repeat.
* "b" - loop task.
* "c" - do task on time after a map timeleft.
* "d" - do task on time before a map timelimit. 
native set_task(Float:time,const function[],id = 0,const parameter[]="",len = 0,const flags[]="", repeat = 0);
*/

public Show_message_in_every_5_sec(id)
{
    
client_print(id,print_chat,"Welcome to the alliedmodders")

__________________
Thanks everyone. #miss_you_all
indraraj striker is offline
BaD CopY
Senior Member
Join Date: Oct 2014
Location: Home
Old 05-11-2015 , 04:28   Re: Show message every 5 seconds...
Reply With Quote #7

It's shows message so much times, not every 5 seconds...
BaD CopY is offline
Send a message via Yahoo to BaD CopY Send a message via Skype™ to BaD CopY
Old 05-11-2015, 04:42
indraraj striker
This message has been deleted by indraraj striker. Reason: nvm
BaD CopY
Senior Member
Join Date: Oct 2014
Location: Home
Old 05-11-2015 , 04:53   Re: Show message every 5 seconds...
Reply With Quote #9

look man, I think code must remove task (sometimes) If I set task to 15.0, message will me shows again every second...
BaD CopY is offline
Send a message via Yahoo to BaD CopY Send a message via Skype™ to BaD CopY
BaD CopY
Senior Member
Join Date: Oct 2014
Location: Home
Old 05-11-2015 , 04:57   Re: Show message every 5 seconds...
Reply With Quote #10

PLzz test your code before you post it here and set task to 15.0 or hight...
BaD CopY is offline
Send a message via Yahoo to BaD CopY Send a message via Skype™ to BaD CopY
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 20:06.


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