03.09.2012, 20:02
pawn Код:
new PlayerTrailer[MAX_PLAYERS] = 0;
public OnPlayerEnterCheckpoint(playerid)
{
if(IsPlayerInRangeOfPoint(playerid, 3.0, -3.9349, 31.2148, 3.0800))
{
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
new vid = GetPlayerVehicleID(playerid);
if(vid == 531)
{
AttachTrailerToVehicle(PlayerTrailer[playerid],vid);
SendClientMessage(playerid,COLOR_JOB,"Job: You have to collect products that have grown after you farmed the land. (( /jpick ))");
DisablePlayerCheckpoint(playerid);
}
}
}
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
/*-- Suas funзхes --*/
DestroyVehicle(PlayerTrailer[playerid]);
SetPlayerCheckpoint(playerid,-3.9349,31.2148,3.0800,3.0);
PlayerTrailer[playerid] = CreateVehicle(607, -1.9775,38.4117,3.0796,330.3404, 0, 0, -1);
return 0;
}