29.01.2015, 10:31
Okai i made this command to start work
And when i enter the first checkpoint i works well but when i enter the second it send for me the message but didn't remove the marker and didn't destroy the checkpoint
PHP код:
CMD:pizza(playerid, params[])
{
if(PlayerInfo[playerid][pJob] != pizza) return SendClientMessage(playerid, COLOR_RED, "You are not a part from pizza company");
if(!IsPlayerInVehicle(playerid, pc1) && !IsPlayerInVehicle(playerid, pc2) && !IsPlayerInVehicle(playerid, pc3) && !IsPlayerInVehicle(playerid, pc4) && !IsPlayerInVehicle(playerid, pc5) && !IsPlayerInVehicle(playerid, pc6) && !IsPlayerInVehicle(playerid, pc7) && !IsPlayerInVehicle(playerid, pc8)) return SendClientMessage(playerid, COLOR_RED, "You are not in any pizza's company car !");
cp1 = CreateDynamicCP(2148.9041,-1433.6654,25.5391,3, -1, -1, playerid, 100.0);
i1 = SetPlayerMapIcon(playerid, 1, 2148.9041, -1433.6654, 25.5391, 0, COLOR_RED, MAPICON_GLOBAL);
SendClientMessage(playerid, COLOR_ORANGE, "Go to the checkpoint and deliver the pizza");
return 1;
}