Script, shutdown server.
#1

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.
Reply
#2

Do you see the menu?
Reply
#3

NO, the server closes.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)