[Ajuda] Comando.
#3

PHP код:
new Float:RandomJornais[28][3] = 

    {
1102.561401, -1092.35302728.468750},
    {
1102.641479, -1069.70166031.882812},
    {
1142.956420, -1069.86987331.765625},
    {
1142.421264, -1092.96777328.187500},
    {
2243.960205, -1639.03784115.907407},
    {
2257.100830, -1645.99584915.503855},
    {
2282.148925, -1644.33825615.234878},
    {
2307.040283, -1677.17504814.001157},
    {
2328.311035, -1681.85375914.853172},
    {
2362.699218, -1644.62121513.531779},
    {
2368.342773, -1673.38415513.542510},
    {
2384.626220, -1673.64514114.746947},
    {
2368.342773, -1673.38415513.542510},
    {
2384.626220, -1673.64514114.746947},
    {
2393.273437, -1647.59094213.537510},
    {
2413.747070, -1647.66796813.750044},
    {
2409.081054, -1672.98095713.594437},
    {
2452.051757, -1642.91357413.735734},
    {
2469.643310, -1647.52563413.470537},
    {
2486.474365, -1646.71582014.070312},
    {
2498.356445, -1644.08068813.782609},
    {
2512.633789, -1651.41137613.958792},
    {
2521.862548, -1679.08337415.496999},
    {
2495.417724, -1690.50646914.765625},
    {
2459.705810, -1690.31604013.541077}
};  
CMD:PegarJornais(playerid

    if(
Jogador[playerid][Profissao] == Jornaleiro
    { 
        if(
PlayerToPoint(playerid50.0784.525817, -1332.78186013.540882)) 
        { 
            
DisablePlayerCheckpoint(playerid); 
            new 
Random random(sizeof(RandomJornais)); 
            
SetPlayerCheckpoint(playerid,RandomJornais[Random][0],RandomJornais[Random][1],RandomJornais[Random][2]); 
            
SendClientMessage(playerid0x008000FF"| PERFECT CITY NEWS | Vocк acabou de receber os jornais para entregar nas Casas."); 
            
SendClientMessage(playerid0x080000FF"| PERFECT CITY NEWS | Bom trabalho."); 
            return 
1
        } 
        else 
SendClientMessage(playerid0xFF0000FF"| ERRO | Vocк nгo estб no local de carregamento."); 
        return 
1
    } 
    else 
SendClientMessage(playerid0xFF0000FF"| ERRO | Vocк nгo tem permissгo!"); 
    return 
1

Reply


Messages In This Thread
Comando. - by Luiiiz - 17.03.2017, 12:32
Re: Comando. - by Toroi - 17.03.2017, 13:52
Re: Comando. - by IlanZ - 17.03.2017, 13:54
Re: Comando. - by Luiiiz - 17.03.2017, 14:37

Forum Jump:


Users browsing this thread: 1 Guest(s)