30.04.2014, 13:32
Yeah it sounds strange,Suddenly KEY_WALK function has stopped working for Team A,but it works fine for TEAM B.
And its problem with KEY_WALK only,If i change KEY_WALK to other keys it works for Team A too can you tell me reason ?
One of Team A Code.
And its problem with KEY_WALK only,If i change KEY_WALK to other keys it works for Team A too can you tell me reason ?
One of Team A Code.
pawn Код:
if(PRESSED(KEY_WALK))
{
if(team[playerid] == TEAM_A)
{
if(pInfo[playerid][pClass] == FROZER)
{
if(gettime() - 13 < Abilitys[playerid][FrozenMakerAb]) return GameTextForPlayer(playerid,"~w~ Still Time left",1000,5);
{
foreach(Player,i)
{
switch(GetPlayerSkin(i))
{
case newbies://I have defined numbers(skin ids) of team B that can be frozen)
{
if(GetDistanceBetweenPlayers(playerid,i) < 7.0)
{
GetClosestPlayer(i);
TogglePlayerControllable(i, 0);
SetTimerEx("ClearF",1800,0,"i",i);
}
}
}
}
}
}
}
}