AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   freeze not working properly.. (https://forums.alliedmods.net/showthread.php?t=65240)

hugz` 01-04-2008 11:36

freeze not working properly..
 
1 Attachment(s)
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 ]

lolhax44 01-04-2008 13:40

Re: freeze not working properly..
 
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 :/

Exolent[jNr] 01-04-2008 13:42

Re: freeze not working properly..
 
1 Attachment(s)
im sure that wont work because then the Terrorists wont be able to move and go hide.

EDIT: try this

hugz` 01-04-2008 14:21

Re: freeze not working properly..
 
Thank you, but what exactly did you change/add? I'm trying to learn.

Exolent[jNr] 01-04-2008 14:40

Re: freeze not working properly..
 
i forwarded the client prethink to set their maxspeed to -1.0 until timer <= 0

hugz` 01-04-2008 14:50

Re: freeze not working properly..
 
CT's never get unfrozen in your plugin, why is that?

Exolent[jNr] 01-04-2008 15:07

Re: freeze not working properly..
 
1 Attachment(s)
hmm it shoulda worked but try this one

hugz` 01-04-2008 15:11

Re: freeze not working properly..
 
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

Exolent[jNr] 01-04-2008 15:14

Re: freeze not working properly..
 
1 Attachment(s)
sry >.<

i should compile myself before posting

EDIT: oops wrong upload, 1 sec.

EDIT2: there :)

hugz` 01-04-2008 15:46

Re: freeze not working properly..
 
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!


All times are GMT -4. The time now is 11:08.

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