24.07.2010, 20:17
It's probably because you are not returning 1 at the end of the function "HiddenTrailerMissions".
EDIT: I am guessing you want to detect if the vehicle the player is in is one of the hidden trailers.
Instead of running a timer, you can use OnPlayerEnterVehicle callback like so:
EDIT: I am guessing you want to detect if the vehicle the player is in is one of the hidden trailers.
Instead of running a timer, you can use OnPlayerEnterVehicle callback like so:
Код:
public OnPlayerEnterVehicle(playerid,vehicleid)
{
if(GetVehicleModel(GetVehicleTrailer(vehicleid)) == 591)
{
SetPlayerCheckpoint(playerid, -1073.4313, -1306.4890, 129.2188, 15);
SendClientMessage(playerid, HIDDEN, "You have found a hidden trailer!");
SendClientMessage(playerid, HIDDEN, "Deliver it to 'The Den'");
}
return 1;
}

