[Pedido] Salvamento de Carros
#2

pawn Код:
CMD:carro(playerid, params[])
{
    new id, cid, Float:c[5], cor1, cor2, nome[24], string[128], Text3D:carro, carroid;
    if(sscanf(params, "dddd", id, cid, cor1, cor2)) return SendClientMessage(playerid, BRANCO, "[INFO] /carro [id] [carid] [cor1] [cor2]");
    {
        if(!IsPlayerConnected(id)) return SendClientMessage(playerid, VERMELHO, "[INFO]: Jogador invбlido!");
        {
            GetPlayerName(id, nome, 24);
            format(string,sizeof(string), "[INFO]: Vocк deu um carro para %s", nome);
            SendClientMessage(playerid, AZUL, string);
            SendClientMessage(id, AMARELO, "[INFO]: Parabйns! Vocк ganhou um carro!");
            GetPlayerPos(id, c[0], c[1], c[2]);
            carroid = CreateVehicle(cid, c[0]+2, c[1]+2, c[2]+2, c[2], cor1, cor2, -1);
            GetPlayerName(id, nome, 24);
            format(string, sizeof(string), "Carro de: %s", nome);
            carro = Create3DTextLabel(string, 0xFF0000AA, 0.0, 0.0, 0.0, 50.0, 0, 1 );
            Attach3DTextLabelToVehicle(carro, carroid, 0.0, -2.9, 0.0);
        }
    }
    return 1;
}
Use este como base!
Reply


Messages In This Thread
Salvamento de Carros - by .:LucasxD:. - 01.07.2012, 15:12
Re: [AJUDA/PEDIDO]Salvamento de Carros - by Brazuca[]s - 01.07.2012, 15:16
Re: [AJUDA/PEDIDO]Salvamento de Carros - by .:LucasxD:. - 01.07.2012, 15:23
Re: [AJUDA/PEDIDO]Salvamento de Carros - by Brazuca[]s - 01.07.2012, 15:24
Re: [AJUDA/PEDIDO]Salvamento de Carros - by Ricop522 - 02.07.2012, 16:50
Re: Salvamento de Carros - by .:LucasxD:. - 02.07.2012, 21:38
Re: [AJUDA/PEDIDO]Salvamento de Carros - by Y_Seven - 02.07.2012, 21:43
Re: Salvamento de Carros - by .:LucasxD:. - 03.07.2012, 13:29

Forum Jump:


Users browsing this thread: 1 Guest(s)