17.03.2017, 13:54
PHP код:
new Float:RandomJornais[28][3] =
{
{1102.561401, -1092.353027, 28.468750},
{1102.641479, -1069.701660, 31.882812},
{1142.956420, -1069.869873, 31.765625},
{1142.421264, -1092.967773, 28.187500},
{2243.960205, -1639.037841, 15.907407},
{2257.100830, -1645.995849, 15.503855},
{2282.148925, -1644.338256, 15.234878},
{2307.040283, -1677.175048, 14.001157},
{2328.311035, -1681.853759, 14.853172},
{2362.699218, -1644.621215, 13.531779},
{2368.342773, -1673.384155, 13.542510},
{2384.626220, -1673.645141, 14.746947},
{2368.342773, -1673.384155, 13.542510},
{2384.626220, -1673.645141, 14.746947},
{2393.273437, -1647.590942, 13.537510},
{2413.747070, -1647.667968, 13.750044},
{2409.081054, -1672.980957, 13.594437},
{2452.051757, -1642.913574, 13.735734},
{2469.643310, -1647.525634, 13.470537},
{2486.474365, -1646.715820, 14.070312},
{2498.356445, -1644.080688, 13.782609},
{2512.633789, -1651.411376, 13.958792},
{2521.862548, -1679.083374, 15.496999},
{2495.417724, -1690.506469, 14.765625},
{2459.705810, -1690.316040, 13.541077}
};
CMD:PegarJornais(playerid)
{
if(Jogador[playerid][Profissao] == Jornaleiro)
{
if(PlayerToPoint(playerid, 50.0, 784.525817, -1332.781860, 13.540882))
{
DisablePlayerCheckpoint(playerid);
new Random = random(sizeof(RandomJornais));
SetPlayerCheckpoint(playerid,RandomJornais[Random][0],RandomJornais[Random][1],RandomJornais[Random][2]);
SendClientMessage(playerid, 0x008000FF, "| PERFECT CITY NEWS | Vocк acabou de receber os jornais para entregar nas Casas.");
SendClientMessage(playerid, 0x080000FF, "| PERFECT CITY NEWS | Bom trabalho.");
return 1;
}
else SendClientMessage(playerid, 0xFF0000FF, "| ERRO | Vocк nгo estб no local de carregamento.");
return 1;
}
else SendClientMessage(playerid, 0xFF0000FF, "| ERRO | Vocк nгo tem permissгo!");
return 1;
}

