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

sleep in amxmodx


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ZeroX
Junior Member
Join Date: Nov 2005
Location: Russian
Old 01-19-2008 , 10:31   sleep in amxmodx
Reply With Quote #1

Please help, i have some problem is scripting.

If I print message to client (colsole) before kick them (when client connect/authorized) - message not type in client console, kick command blocked this

May be need sleep between message print and kick? How i can do that?

thanks..
ZeroX is offline
_Master_
Senior Member
Join Date: Dec 2006
Old 01-19-2008 , 10:49   Re: sleep in amxmodx
Reply With Quote #2

1. print the message
2. make a task for kicking

"sleep" ( as in "delay" ) is implemented as a task.
"sleep" ( as in "global wait" ) can't be implemented in amxx for obvious reasons.
_Master_ is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 01-19-2008 , 11:11   Re: sleep in amxmodx
Reply With Quote #3

Why don't you print text in the kick window ?
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
_Master_
Senior Member
Join Date: Dec 2006
Old 01-19-2008 , 11:16   Re: sleep in amxmodx
Reply With Quote #4

I think he wants more lines printed than the kick cmd supports...
_Master_ is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 01-19-2008 , 11:19   Re: sleep in amxmodx
Reply With Quote #5

I remember have read about 4 lines.

Another way is to print message with client cmd 'echo', then use client cmd 'disconnect', as in HPK plugin.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
ZeroX
Junior Member
Join Date: Nov 2005
Location: Russian
Old 01-19-2008 , 11:26   Re: sleep in amxmodx
Reply With Quote #6

Quote:
Originally Posted by _Master_ View Post
1. print the message
2. make a task for kicking

"sleep" ( as in "delay" ) is implemented as a task.
"sleep" ( as in "global wait" ) can't be implemented in amxx for obvious reasons.
big thanks _Master_ - it's right! Worked!

Quote:
Originally Posted by connorr View Post
I remember have read about 4 lines.

Another way is to print message with client cmd 'echo', then use client cmd 'disconnect', as in HPK plugin.
Yes, I print message to console, about info what player can do if they will be banned. This message more than buffer of kick window. And i also print message by client_cmd(id, "echo ...").

thanks to all.
ZeroX 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 05:21.


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