09.03.2013, 07:20
Hi guys evertime i translate the commands Zcmd to Dcmd it never works i dont get errors or something!
May you help me with it thanks guys
May you help me with it thanks guys

Код:
dcmd_Work(playerid, params[])
{
#pragma unused params
if(!IsPlayerInRangeOfPoint(playerid, 75, 1711.3271,-2411.0510,13.6257)) return SendClientMessage(playerid, COLOR_RED, "You need to be at LAX to begin your flight.");
if(IsBooked[playerid]) return SendClientMessage(playerid, COLOR_RED, "You are already have a flight in progress.");
new vehicleid = GetPlayerVehicleID(playerid);
if(!IsAPlane(vehicleid) ) return Error(playerid, "You need to be an airplane to do air missions");
loadairmission(playerid);
return 1;
}
dcmd_cancelwork(playerid, params[])
{
#pragma unused params
if(!IsBooked[playerid]) return SendClientMessage(playerid, COLOR_RED, "You are not on a mission.");
IsBooked[playerid] = 0;
DisablePlayerCheckpoint(playerid);
GivePlayerMoney(playerid, -4000);
SendClientMessage(playerid, COLOR_RED, "You abandoned your flight and have been charged $4,000");
return 1;
}

