04.11.2015, 18:41
Hello i have scripted a trucking mission everything works fine a truck and a trialer will be created i also get message that the mission is started:
The problem is checkpoint is not creating
btw i followed this tutorial:
http://forum.sa-mp.com/showthread.ph...hlight=Mission
PS. i only replaced ID into MisID
PHP код:
stock TruckingMission(playerid)
{
MissionStatus[playerid] = 1;
new MisRand = random(sizeof(MisLocations));
new LoadText[128], Float:x, Float:y, Float:z;
x = MisLocations[MisRand][LoadX];
y = MisLocations[MisRand][LoadY];
z = MisLocations[MisRand][LoadZ];
unx[playerid] = MisLocations[MisRand][UnloadX];
uny[playerid] = MisLocations[MisRand][UnloadY];
unz[playerid] = MisLocations[MisRand][UnloadZ];
iPay[playerid] = MisLocations[MisRand][Pay];
MissionCP[playerid] = CreateDynamicCP(x, y, z, 3.0, -1, -1, playerid, 100.0);
DestroyVehicle(MissionVehicle[playerid]);
MissionVehicle[playerid] = CreateVehicle(403, 1524.0280,14.6346,24.1406,90.2859, -1, -1, -1);
PutPlayerInVehicle(playerid, MissionVehicle[playerid], 0);
DestroyVehicle(MissionTrailer[playerid]);
MissionTrailer[playerid] = CreateVehicle(450, 1524.0280,14.6346,24.1406,92.8547, -1, -1, -1);
AttachTrailerToVehicle(MissionTrailer[playerid], MissionVehicle[playerid]);
format(LoadText, 128, "%s",MisLocations[MisRand][LoadName]);
SendClientMessage(playerid, -1, "Mission:");
SendClientMessage(playerid, -1, "_____________________");
SendClientMessage(playerid, -1, "");
SendClientMessage(playerid, 0xFFFFFFFF, LoadText);
SendClientMessage(playerid, -1, "_____________________");
}
btw i followed this tutorial:
http://forum.sa-mp.com/showthread.ph...hlight=Mission
PS. i only replaced ID into MisID