PHP код:
CMD:work(playerid,params[])
{
if(gTeam[playerid] == TEAM_ARMY)
{
if(IsPlayerInRangeOfPoint(playerid,50.0,-1314.2576,498.6849,18.2344))
{
CP_SFCarrier = CreateDynamicCP(311.3356,2049.9468,17.6406,-1,-1,-1,-1,30.0);
SendClientMessage(playerid,COLOR_ORANGE,"[{FFA500}FLIGHT{EEEEEE}]Complete a flight from SF Carrier to A51");
}
if(IsPlayerInRangeOfPoint(playerid,50.0,311.3356,2049.9468,17.6406))
{
CP_A51 = CreateDynamicCP(-1314.2576,498.6849,18.2344,-1,-1,-1,-1,50.0);
SendClientMessage(playerid,COLOR_ORANGE,"[{FFA500}FLIGHT{EEEEEE}]Complete a flight from A51 to SF Carrier");
}
}
return 1;
}