28.01.2015, 16:14
I make this code
But when i enter the vehicle and type pizza it tell me that i am not in any pizza's company vehicle ??
Please Help !
PHP код:
new pc1;
new pc2;
new pc3;
new pc4;
new pc5;
new pc6;
new pc7;
new pc8;
PHP код:
pc1 = AddStaticVehicle(448,2097.8943,-1793.3204,12.9892,88.5930,3,6);
pc2 = AddStaticVehicle(448,2097.5974,-1794.8464,12.9886,86.0895,3,6);
pc3 = AddStaticVehicle(448,2097.4709,-1796.3247,12.9882,88.3048,3,6);
pc4 = AddStaticVehicle(448,2097.3459,-1797.8171,12.9878,83.3244,3,6);
pc5 = AddStaticVehicle(448,2097.2129,-1812.4310,12.9824,89.2254,3,6);
pc6 = AddStaticVehicle(448,2096.8552,-1814.3385,12.9822,87.6681,3,6);
pc7 = AddStaticVehicle(448,2096.9456,-1816.5345,12.9825,88.2128,3,6);
pc8 = AddStaticVehicle(448,2096.9509,-1818.2770,12.9833,94.1691,3,6);
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 = CreateDynamicRaceCP(1, 2148.9041,-1433.6654,25.5391, 380.4260,-1366.8895,24.0000, 3, -1, -1, playerid, 100.0);
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;
}
Please Help !