Raised This Month: $ Target: $400
 0% 

Stop players and 15 seconds to resume


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Administrator
Member
Join Date: Jun 2014
Old 07-26-2014 , 07:27   Stop players and 15 seconds to resume
Reply With Quote #1

Hi.
Prompt why players do not stop?

PHP Code:
new g_Timer 15 
PHP Code:
public plugin_init()
{
set_task(15.5"frozen")

PHP Code:
public frozen()
{
g_Timer -= 1
new g_Tume g_Timer -= 1
if(g_Tume >= 1)
{
set_hudmessage(25500, -1.0, -1.006.01.0)
show_hudmessage(0"You will be able to move after: %d"g_Tume)
set_task(1.0"frozen")
set_user_maxspeed(00.0)
}
else
{
un_frozen()
}
}

public 
un_frozen()
{
set_user_maxspeed(0300.0)
client_print(0print_chat,"unfrozen")


Last edited by Administrator; 07-26-2014 at 07:28.
Administrator is offline
 



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 13:09.


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