Aşşadaki pluginde her el başı freeze deaktif çalışmamaktadır her elde ct de bu freeze kalkıp t her el başında 2 saniye freeze olacak şekilde ayarlıyabilirmisiniz?
PHP Kod:
/*
,----.. .--.--. ,---,
/ / \ / / '. ' .' \
| : :| : /`. / / ; '.
. | ;. /; | |--` : : \
. ; /--` | : ;_ : | /\ \
; | ; \ \ `. | : ' ;. : !BerK! , WWW.CSAilesi.COM
| : | `----. \| | ;/ \ \
. | '___ __ \ \ |' : | \ \ ,'
' ; : .'| / /`--' /| | ' '--'
' | '/ :'--'. / | : :
| : / `--'---' | | ,'
\ \ .' `--''
`---`
*/
#include <amxmodx>
#include <hamsandwich>
#include <fakemeta>
new sayim[33],bFrozen[33]
public plugin_init() {
register_logevent("beRS", 2, "1=Round_Start")
}
public beRS(id){
dondur()
set_task(0.1,"GeriSay")
sayim[id] = 2
}
public GeriSay(id){
if(sayim[id] == 0)
{
freezeboz()
client_print(id, print_center, "-= [Hadi Yavrum Go Go Go] =-")
}
else
{
client_print(id, print_center, "-= [%d Saniye Icinde Freeze Bozulacak] =-",sayim)
sayim[id] -= 1
set_task(1.0,"GeriSay")
}
}
public dondur()
{
for(new i = 1; i < 33; i++)
{
if(!Stuck(i))
{
if(is_user_alive(i))
{
bFrozen[i] = true
new Flags = pev(i, pev_flags)
if(~Flags & FL_FROZEN)
{
set_pev(i, pev_flags, Flags | FL_FROZEN)
}
}
}
}
}
public freezeboz()
{
for(new i = 1; i < 33; i++)
{
if(!Stuck(i))
{
if(is_user_alive(i))
{
bFrozen[i] = false
new Flags = pev(i, pev_flags)
if(Flags & FL_FROZEN)
{
set_pev(i, pev_flags, Flags & ~FL_FROZEN)
}
}
}
}
}
public unFreeze(Uid)
{
bFrozen[Uid] = false
new Flags = pev(Uid, pev_flags)
if(Flags & FL_FROZEN)
{
set_pev(Uid, pev_flags, Flags & ~FL_FROZEN)
}
}
stock bool:Stuck(Id)
{
static Float:Origin[3]
pev(Id, pev_origin, Origin)
engfunc(EngFunc_TraceHull, Origin, Origin, IGNORE_MONSTERS, pev(Id, pev_flags) & FL_DUCKING ? HULL_HEAD : HULL_HUMAN, 0, 0)
if (get_tr2(0, TR_StartSolid))
return true
return false
}