Script, shutdown server. - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Script, shutdown server. (
/showthread.php?tid=185845)
Script, shutdown server. -
eXtr1kE - 26.10.2010
So I put this in CMD:enter :
pawn Код:
if (PlayerToPoint(2, playerid,-2288.067626,-79.334396,35.320301)) {
CP[playerid] = 110;
SetPlayerCheckpoint(playerid,294.2446,-79.9902,1000.5056,1.5);
}
And in public OnPlayerEnterCheckpoint (playerid) I made. :
pawn Код:
else if(CP[playerid] == 110)
{
TogglePlayerControllable(playerid,0);
ShowMenuForPlayer(WeaponsSF,playerid);
SetPlayerFacingAngle(playerid, 354.16);
SetPlayerCameraPos(playerid, 297.70, -86.19, 1003.51);
SetPlayerCameraLookAt(playerid, 295.30, -81.80, 1002.11);
}
And CP[playerid] == 110
pawn Код:
else if(CP[playerid] == 110)
{
TogglePlayerControllable(playerid,0);
ShowMenuForPlayer(WeaponsSF,playerid);
SetPlayerFacingAngle(playerid, 354.16);
SetPlayerCameraPos(playerid, 297.70, -86.19, 1003.51);
SetPlayerCameraLookAt(playerid, 295.30, -81.80, 1002.11);
}
And when you get in horsepower, 4 seconds and turns off the server.
Re: Script, shutdown server. -
MadeMan - 26.10.2010
Do you see the menu?
Re: Script, shutdown server. -
eXtr1kE - 26.10.2010
NO, the server closes.