Raised This Month: $ Target: $400
 0% 

freeze not working properly..


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
hugz`
Veteran Member
Join Date: Jul 2007
Location: In a house
Old 01-04-2008 , 11:36   freeze not working properly..
Reply With Quote #1

This is a hide n seek plugin, there is a bug that I'm sure every server hates, during the count down, CT's suppose to be frozen, but if you hold W, they can walk for some reason, could that be fixed?

[ plugin below ]
Attached Files
File Type: sma Get Plugin or Get Source (hidenseek.sma - 582 views - 22.8 KB)
__________________
hugz` is offline
Send a message via AIM to hugz`
lolhax44
BANNED
Join Date: Jan 2008
Old 01-04-2008 , 13:40   Re: freeze not working properly..
Reply With Quote #2

Try this

PHP Code:
//------------------------------------------------------------------------------------------------------------
public startPubSeek(id,level,cid) {
    if (!
cmd_access(id,level,cid,0))
        return 
PLUGIN_HANDLED
    server_cmd
("sv_restart 1")
    
server_cmd("sv_gravity 370")
    
server_cmd("mp_freezetime 0")
    
server_cmd("mp_roundtime 3.5")
    
server_cmd("sv_maxspeed 320")
    
server_cmd("Go and Find them")
    
set_cvar_num("hide_n_seek",2)
    
round 1
    timer 
get_cvar_num("hide_n_seek_timer")
    
overtime 3
    
return PLUGIN_HANDLED
}
//------------------------------------------------------------------------------------------------------------ 
PHP Code:
//------------------------------------------------------------------------------------------------------------
public FreezeStart(id,level,cid) {
    if (!
cmd_access(id,level,cid,0))
        return 
PLUGIN_HANDLED
    server_cmd
("sv_maxspeed 0")
    
server_cmd("say You are Frozen")
    
set_cvar_num("hide_n_seek",2)
    
round 1
    timer 
get_cvar_num("hide_n_seek_timer")
    
overtime 3
    
return PLUGIN_HANDLED
}
//------------------------------------------------------------------------------------------------------------ 
Place under Start timer it might work but coders have to see :/
lolhax44 is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 01-04-2008 , 13:42   Re: freeze not working properly..
Reply With Quote #3

im sure that wont work because then the Terrorists wont be able to move and go hide.

EDIT: try this
Attached Files
File Type: sma Get Plugin or Get Source (hidenseek.sma - 603 views - 23.1 KB)
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!

Last edited by Exolent[jNr]; 01-04-2008 at 13:48.
Exolent[jNr] is offline
hugz`
Veteran Member
Join Date: Jul 2007
Location: In a house
Old 01-04-2008 , 14:21   Re: freeze not working properly..
Reply With Quote #4

Thank you, but what exactly did you change/add? I'm trying to learn.
__________________
hugz` is offline
Send a message via AIM to hugz`
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 01-04-2008 , 14:40   Re: freeze not working properly..
Reply With Quote #5

i forwarded the client prethink to set their maxspeed to -1.0 until timer <= 0
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
hugz`
Veteran Member
Join Date: Jul 2007
Location: In a house
Old 01-04-2008 , 14:50   Re: freeze not working properly..
Reply With Quote #6

CT's never get unfrozen in your plugin, why is that?
__________________
hugz` is offline
Send a message via AIM to hugz`
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 01-04-2008 , 15:07   Re: freeze not working properly..
Reply With Quote #7

hmm it shoulda worked but try this one
Attached Files
File Type: sma Get Plugin or Get Source (hidenseek.sma - 567 views - 23.2 KB)
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
hugz`
Veteran Member
Join Date: Jul 2007
Location: In a house
Old 01-04-2008 , 15:11   Re: freeze not working properly..
Reply With Quote #8

Compile error..

Line 277 is 'set_pev(id, pev_maxspeed, 250.0);'

Quote:
/home/groups/amxmodx/tmp3/phpA0GR7V.sma(277) : error 017: undefined symbol "id"
/home/groups/amxmodx/tmp3/phpA0GR7V.sma(277) : warning 215: expression has no effect
/home/groups/amxmodx/tmp3/phpA0GR7V.sma(277) : warning 215: expression has no effect
/home/groups/amxmodx/tmp3/phpA0GR7V.sma(277) : error 001: expected token: ";", but found ")"
/home/groups/amxmodx/tmp3/phpA0GR7V.sma(277) : error 029: invalid expression, assumed zero
/home/groups/amxmodx/tmp3/phpA0GR7V.sma(277) : fatal error 107: too many error messages on one line
__________________
hugz` is offline
Send a message via AIM to hugz`
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 01-04-2008 , 15:14   Re: freeze not working properly..
Reply With Quote #9

sry >.<

i should compile myself before posting

EDIT: oops wrong upload, 1 sec.

EDIT2: there
Attached Files
File Type: sma Get Plugin or Get Source (hidenseek.sma - 626 views - 23.2 KB)
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
hugz`
Veteran Member
Join Date: Jul 2007
Location: In a house
Old 01-04-2008 , 15:46   Re: freeze not working properly..
Reply With Quote #10

Works great!!
Only one thing.. the timer is a little of, you get unfreezed right after '2' not after 1.

Other then that +karma =p
Love your server by the way!
__________________

Last edited by hugz`; 01-04-2008 at 16:58.
hugz` is offline
Send a message via AIM to hugz`
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 11:08.


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