if(strcmp(cmd, "/start", true) == 0) { if (mission2[playerid] = 1) { new vehicle; vehicle = GetPlayerVehicleID(playerid); if (vehicle = 548) { SendClientMessage(playerid,NICESKY,"[MISSION] Good job. Now fly the Cargobob to the Big Ear."); SendClientMessage(playerid,NICESKY,"[MISSION] Once there, use /loadbombs to load the bombs."); return 1; } else { SendClientMessage(playerid,NICESKY,"[MISSION] Wrong vehicle."); } } return 1; }
if (vehicle = 548)
if (vehicle == 548)
if(strcmp(cmd, "/start", true) == 0)
{
if (mission2[playerid] == 1)
{
new vehicle;
vehicle = GetPlayerVehicleID(playerid);
if(GetVehicleModel(vehicle ) == 548) // lmao you hade 596 thats lspd cop car cargobob id is 548
{
SendClientMessage(playerid,NICESKY,"[MISSION] Good job. Now fly the Cargobob to the Big Ear.");
SendClientMessage(playerid,NICESKY,"[MISSION] Once there, use /loadbombs to load the bombs.");
}
else
{
SendClientMessage(playerid,NICESKY,"[MISSION] Wrong vehicle.");
}
}
return 1;
}
if(strcmp(cmd, "/start", true) == 0)
if(mission2[playerid] == 1)
{
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 596)
{
SendClientMessage(playerid,NICESKY,"[MISSION] Good job. Now fly the Cargobob to the Big Ear.");
SendClientMessage(playerid,NICESKY,"[MISSION] Once there, use /loadbombs to load the bombs.");
}
else
{
SendClientMessage(playerid,NICESKY,"[MISSION] Wrong vehicle.");
}
}
return 1;
}
Originally Posted by Mo3
..means?
I just want to check if the player is in a cargobob. |
public OnGameModeInit()
{
AddStaticVehicle(520, 2109.1763, 1503.0453, 32.2887, 82.2873, 0, 1); // vehicle-id is 1.
AddStaticVehicle(520, 2109.1763, 1503.0453, 32.2887, 82.2873, 0, 1); // vehicle-id is 2.
AddStaticVehicle(520, 2109.1763, 1503.0453, 32.2887, 82.2873, 0, 1); // vehicle-id is 3.
// other code.
AddStaticVehicle(520, 2109.1763, 1503.0453, 32.2887, 82.2873, 0, 1); // vehicle-id is 4.
AddStaticVehicle(520, 2109.1763, 1503.0453, 32.2887, 82.2873, 0, 1); // vehicle-id is 5.
// other code.
AddStaticVehicle(520, 2109.1763, 1503.0453, 32.2887, 82.2873, 0, 1); // vehicle-id is 6.
return 1;
}