19.11.2013, 09:33
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?/
-----------------------------------------------------------------------------------
-----------------------------------------------------------------------------------
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?/