26.10.2010, 15:18
So I put this in CMD:enter :
And in public OnPlayerEnterCheckpoint (playerid) I made. :
And CP[playerid] == 110
And when you get in horsepower, 4 seconds and turns off the server.
pawn Код:
if (PlayerToPoint(2, playerid,-2288.067626,-79.334396,35.320301)) {
CP[playerid] = 110;
SetPlayerCheckpoint(playerid,294.2446,-79.9902,1000.5056,1.5);
}
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);
}
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);
}