why not this script??
#1

Sorry i'm very very bad eglish...
-----------------------------------------------------------------------------------
-----------------------------------------------------------------------------------

new Float:vcx,Float:vcy,Float:vcz;

public OnPlayerSpawn(playerid)
{
TogglePlayerControllable(playerid,0);
SetTimerEx("hi",3000,0,"d",playerid);
return 1;
}

forward hi(playerid);
public hi(playerid)
{
GetPlayerCameraFrontVector(playerid,vcx,vcy,vcz);

if( vcz <0.8 )
{
SendClientMessage(playerid,COLOR_RED,"Freeze!");
}
else
{
TogglePlayerControllable(playerid,1);
SendClientMessage(playerid,COLOR_RED,"Freeze off");
}
return 0;
}

---------------------------------------------------------------------------
in game..

only " Freeze! " .. whY?/
Reply
#2

If you also want to freeze the player when it says "Freeze!", you need to add the line in bold there aswell.

Код:
if( vcz <0.8 )
{
SendClientMessage(playerid,COLOR_RED,"Freeze!");
TogglePlayerControllable(playerid,0);
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)