29.11.2016, 19:18
I go in game use /startpaint, I get the texts but not the checkpoints any idea?
Код:
CMD:startpaint(playerid,params[])
{
SetPlayerHealth(playerid, 100);
SendClientMessage(playerid, COLOR_RED, "Follow the checkpoints to continue painting.");
AddPlayerClass(0,210.7901,-237.0084,1.9033,305.6858,0,0,0,0,0,0); //
AddPlayerClass(0,201.8219,-228.8852,1.7786,17.2335,0,0,0,0,0,0); //
AddPlayerClass(0,213.2698,-225.0712,1.7786,294.6407,0,0,0,0,0,0); //
AddPlayerClass(0,221.7485,-234.4338,1.7786,228.0019,0,0,0,0,0,0); //
AddPlayerClass(0,214.8299,-236.6843,1.5781,283.2274,0,0,0,0,0,0); //
SendClientMessage(playerid, COLOR_RED, "You have started working.");
}
return 1;
}



If only checkpoint sequences were that easy to create... You need to keep track of the player's current progress through the sequence. Each time the player enters a checkpoint the progress is incremented and a new checkpoint is shown based on that value. Look up a tutorial on how to make a race. It's a similar process. I don't fancy explaining the whole thing here.