07.04.2010, 20:20
I'm trying to make a new FS for garbage truck driving and it works fine but now since i added random checkpoints instead of going to 1 checkpoint to complete the mission the checkpoints are not showing up.
Whats the problem?
Here is the command to start my mission:
Here are my checkpoints:
The checkpoints simply won't show up. They show as a red dot on the minimap, but the checkpoint is not visible.
Whats the problem?
Here is the command to start my mission:
Код:
if (strcmp("/garbage", cmdtext, true, 10) == 0) { if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 455) { if (truckjobrunning >=1) { SendClientMessage(playerid,COLOR_RED,"You are already doing the truck driving Mission!"); return 1; } truckjobrunning = 1; new rand = random(sizeof(checkpoints)); SetPlayerCheckpoint(playerid,checkpoints[rand][0],checkpoints[rand][1],checkpoints[rand][2],checkpoints[rand][3]); GameTextForPlayer(playerid, "~g~You started the job, good luck!", 3000, 3); new name[MAX_PLAYER_NAME], string[48]; GetPlayerName(playerid, name, sizeof(name)); format(string, sizeof(string), "%s is now doing the Truck mission.", name ); SendClientMessageToAll(COLOR_RED, string); return 1; } SendClientMessage(playerid, COLOR_RED,"You have to be in a truck to start the job"); return 1; }
Код:
new Float: checkpoints[][5] = { { 2798.1702,-1576.2926,10.9272 }, { 2060.4375,-2091.2126,13.5469 }, { 070.8125,-2384.6160,13.5469 }, { 900.7358,-1204.0779,16.9832 }, { 800.1103,-1542.8258,13.5526 } };
The checkpoints simply won't show up. They show as a red dot on the minimap, but the checkpoint is not visible.