28.03.2010, 13:39
[PAWN]
public freezebombtime(bombid)
{
for(new playerid = 0; playerid < MAX_PLAYERS; playerid++)
{
if(IsPlayerInRangeOfPoint(playerid, 15, bombx[playerid], bomby[playerid], bombz[playerid]))
{
TogglePlayerControllable(playerid, false);
SendClientMessage(playerid, MESSAGE_COLOR, "~ Freeze bomb has been exploded near you. You're unable to move for 5 seconds ~");
SetTimerEx("stopfreeze", 5000, false, "i", playerid);
}
}
}
[PAWN]
try that
public freezebombtime(bombid)
{
for(new playerid = 0; playerid < MAX_PLAYERS; playerid++)
{
if(IsPlayerInRangeOfPoint(playerid, 15, bombx[playerid], bomby[playerid], bombz[playerid]))
{
TogglePlayerControllable(playerid, false);
SendClientMessage(playerid, MESSAGE_COLOR, "~ Freeze bomb has been exploded near you. You're unable to move for 5 seconds ~");
SetTimerEx("stopfreeze", 5000, false, "i", playerid);
}
}
}
[PAWN]
try that