22.05.2012, 20:55
Hello,i maked some truck delivery.Everything is working,except a thing,the checkpoint for loading won't show.
I use incognito streamer.
When a player types /mission,a checkpoint should appear in the map,but seems not working:
This is the command:
As you can see,LoadTruck refers to this:
What's wrong?
I use incognito streamer.
When a player types /mission,a checkpoint should appear in the map,but seems not working:
This is the command:
pawn Код:
CMD:mission(playerid, params[])
{
if(GetPVarInt(playerid,"MissionTime")>GetTickCount())return SendClientMessage(playerid,0xFF0000FF,"Please wait 1 minute before starting a new truck delivery.");
if(IsATruck(GetPlayerVehicleID(playerid)))
{
LoadTruck(playerid);
}
else return SendClientMessage(playerid, COLOR_BLUE, "You're not in a truck/van,so you can't start trucker mission.");
if(truckloaded == 1)
{
SendClientMessage(playerid, COLOR_BLUE, "You are already making a truck delivery mission.");
}
return 1;
}
pawn Код:
public LoadTruck(playerid)
{
new rand = random(sizeof(Destinations));
CPs[3] = CreateDynamicCP(Destinations[rand][0], Destinations[rand][1], Destinations[rand][2], 3.0);
SendClientMessage(playerid, COLOR_BLUE, "Your truck/van has been loaded,go to the checkpoint to leave the load and collect the payment.");
truckloaded = 1;
SetPVarInt(playerid,"MissionTime",GetTickCount()+60000);
return 1;
}