21.08.2013, 11:06
Hi guys, Im making my pilot server, but the command is not working, I don't know why.
So, even if you are in a plane, it says you are not in a plane.
Tried everything, hopefully someone can help me here:
Again, it keeps saying Im not in a plane.
If someone could help, I'd appreciate it.
Thank you.
So, even if you are in a plane, it says you are not in a plane.
Tried everything, hopefully someone can help me here:
pawn Код:
CMD:flight(playerid, vehicleid, params[])
{
if(GetVehicleModel(vehicleid) !=511 || GetVehicleModel(vehicleid) !=512 || GetVehicleModel(vehicleid) != 513 || GetVehicleModel(vehicleid) != 519 || GetVehicleModel(vehicleid) != 520 || GetVehicleModel(vehicleid) != 553 || GetVehicleModel(vehicleid) != 577 || GetVehicleModel(vehicleid) != 592 || GetVehicleModel(vehicleid) != 593 || GetVehicleModel(vehicleid) != 460 || GetVehicleModel(vehicleid) != 476)
return SCM(playerid, COLOR_RED, "You need to be in a plane to use this!");
else if (GetVehicleModel(vehicleid) ==511 || GetVehicleModel(vehicleid) ==512 || GetVehicleModel(vehicleid) == 513 || GetVehicleModel(vehicleid) == 519 || GetVehicleModel(vehicleid) == 520 || GetVehicleModel(vehicleid) == 553 || GetVehicleModel(vehicleid) == 577 || GetVehicleModel(vehicleid) == 592 || GetVehicleModel(vehicleid) == 593 || GetVehicleModel(vehicleid) == 460 || GetVehicleModel(vehicleid)== 476)
{
new destination[32];
if(sscanf(destination, "s[32]", destination))
{
SCM(playerid, COLOR_WHITE, "USAGE: /flight [destination]!");
SCM(playerid, Grey, "Available Destinations: LS | SF | LV");
}
if(strcmp(destination, "LS", true) == 0)
{
if(IsAtLS[playerid] == 1) return SCM(playerid, COLOR_YELLOW, "Choose another destination, you already are at the Los Santos Airport!");
else
{
IsDoingJob[playerid] = 1;
lsarrive = CreateDynamicCP(1809.7552,-2593.3799,13.5469, 10, -1, -1, playerid, 100);
SendClientMessage(playerid, COLOR_YELLOW, "Your next destination has been set at Los Santos Airport. Check your radar for directions!");
}
}
if(strcmp(destination, "SF", true) == 0)
{
if(IsAtSF[playerid] == 1) return SCM(playerid, COLOR_YELLOW,"Choose another destination, you already are at the San Fierro Airport!");
else
{
IsDoingJob[playerid] = 1;
sfarrive = CreateDynamicCP(-1379.8064,116.2202,14.8811, 10, -1, -1, playerid, 100);
SendClientMessage(playerid, COLOR_YELLOW, "Your next destination has been set at San Fierro Airport. Check your radar for directions!");
}
}
}
return 1;
}
If someone could help, I'd appreciate it.
Thank you.