[Ajuda] Comando trabalhar
#7

#edit consegui que que pegue , porem so pega uma vez o /trabalhar

Code
pawn Код:
command(trabalhar, playerid, params[])
{
    if(PlayerInfo[playerid][pClass] == TEAM_TRUCK)
    {
        if(GetVehicleTrailer(GetPlayerVehicleID(playerid)))
        {
             for(new wp = 0; wp < sizeof (Locais); wp++ )
             {
                   if(IsPlayerInRangeOfPoint(playerid, 100000, Locais[wp][X], Locais[wp][Y], Locais[wp][Z]))
                   {
                       rot[playerid]++;
                       PlayerInfo[playerid][pInfo][rot[playerid]] = Locais[wp][RotaID];
                       printf("pInfo %d | Rot %d", PlayerInfo[playerid][pInfo][rot[playerid]], rot[playerid]);
                       Chamar(playerid);
                       continue;
                   }
             }
             rot[playerid]= 0;
             printf("%d", rot[playerid]);
        }
        else SendClientMessage(playerid, -1,"[ERRO] Vocк nгo tem carroceria.");
    }
    return true;
}
Chamar(playerid)
{
    new aaa[150];
    for(new i = 1; i< 4; i++)
    {
        format(Don, sizeof(Don), "Carga: %s - %s para %s\n", Locais[PlayerInfo[playerid][pInfo][i]][Produto], Locais[PlayerInfo[playerid][pInfo][i]][Name], Locais[PlayerInfo[playerid][pInfo][i]][ParaName]);
        strcat(aaa, Don, sizeof(aaa));
    }
    ShowPlayerDialog(playerid, DIALOG_WORK, DIALOG_STYLE_LIST, "Rotas", aaa, "Selecionar", #);
    return true;
}
Reply


Messages In This Thread
Comando trabalhar - by Don_Speed - 13.08.2013, 15:45
Re: Comando trabalhar - by PT - 13.08.2013, 16:03
Re: Comando trabalhar - by Don_Speed - 13.08.2013, 16:09
Re: Comando trabalhar - by PT - 13.08.2013, 16:44
Re: Comando trabalhar - by Don_Speed - 13.08.2013, 16:53
Re: Comando trabalhar - by PT - 13.08.2013, 17:16
Re: Comando trabalhar - by Don_Speed - 13.08.2013, 21:03
Re: Comando trabalhar - by PT - 13.08.2013, 22:21
Re: Comando trabalhar - by Don_Speed - 13.08.2013, 22:24
Re: Comando trabalhar - by PT - 13.08.2013, 22:28

Forum Jump:


Users browsing this thread: 1 Guest(s)