01.11.2016, 07:02
PHP код:
CMD:mission1(playerid)
{
if(Mission1Started[playerid] == 1)
{
SCM(playerid, -1, "Error! Mission already started");
return 1;
}
else
{
Mission1Started[playerid] = 1;
ClearChat(playerid);
TogglePlayerSpectating(playerid, 1);
SetPlayerVirtualWorld(playerid, playerid + 1);
Mission1Vehicle = CreateVehicle(481, -2304.5649, -1638.6208, 483.6974, 0.0, 0, 0, 500);
SetVehicleVirtualWorld(Mission1Vehicle, GetPlayerVirtualWorld(playerid));
InterpolateCameraPos(playerid, -2470.377929, -1637.105468, 476.149871, -2182.300292, -1749.309814, 526.273498, 6000, CAMERA_MOVE);
InterpolateCameraLookAt(playerid, -2473.697998, -1639.223632, 473.069213, -2186.064941, -1746.659667, 524.323120, 6000, CAMERA_MOVE);
SCM(playerid, -1, ""SERVERBLUE"[MISSION 1]");
SCM(playerid, -1, "This is your first assignment");
SCM(playerid, -1, "You will be paid "SERVERBLUE"50 000$ "WHITE"if you eliminate your target");
SCM(playerid, -1, "This is the place from where you will start");
timer1[playerid] = SetTimer("Mison1First", 15000, true);
}
return 1;
}