03.09.2012, 17:10
Problem: I get this "Job: You have to collect products that have grown after you farmed the land. (( /jpick ))" message, but trailer isn't attached. Trailer changes it's rotation( Z-rotation) but it does not attach itself to the players car.
Trailer is next to vehicle( streamed )
code cut out from OnDialogResponse. Could be helpful.
I am not receiving any warnings or errors.
Please help. Thank you in advance!
Trailer is next to vehicle( streamed )
pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
if(IsPlayerInRangeOfPoint(playerid,3.0,-3.9349,31.2148,3.0800))
{
if(GetPlayerState(playerid)==PLAYER_STATE_DRIVER)
{
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 531)
{
AttachTrailerToVehicle(PlayerTrailer[playerid],GetPlayerVehicleID(playerid));
SendClientMessage(playerid,COLOR_JOB,"Job: You have to collect products that have grown after you farmed the land. (( /jpick ))");
DisablePlayerCheckpoint(playerid);
}
}
}
return 1;
}
pawn Код:
PlayerTrailer[playerid]=CreateVehicle(607, -1.9775,38.4117,3.0796,330.3404, 0, 0, -1);
SetPlayerCheckpoint(playerid,-3.9349,31.2148,3.0800,3.0);
Please help. Thank you in advance!