why not this script?? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: why not this script?? (
/showthread.php?tid=476603)
why not this script?? -
dlf0605 - 19.11.2013
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?/
Re: why not this script?? -
batonsa - 19.11.2013
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);
}