[Ajuda] Comando /cv
#2

pawn Код:
COMMAND:criarveiculo ( playerid, params[] )
{
    return cmd_cv ( playerid, params );
}
COMMAND:cv ( playerid, params[] )
{
    if(IsPlayerAdmin(playerid) )
    {
        new
        STR[128],
            Float:X,
                Float:Y,
                    Float:Z,
                        Float:A,
                            Veiculo,
                                Modelo,
                                    c1,
                                    c2;

        if(sscanf(params, "ddd", Modelo, c1, c2))
            return SendClientMessage(playerid, -1, "| AVISO | Use:/cv [Modelo] [cor1] [cor2] ");

        if( Modelo >= 400 && Modelo <= 611 )
        {
            GetPlayerPos(playerid, X, Y, Z);
            GetPlayerFacingAngle(playerid, A);

            Veiculo =  AddStaticVehicleEx(Modelo, X, Y, Z, A, c1, c2, 30);
            PutPlayerInVehicle(playerid, Veiculo, 0);

            format(STR, sizeof (STR), "| INFO | Administrador(a) Vocк criou o Veiculo %d com Sucesso.", Modelo );
            SendClientMessage(playerid, -1, STR);

        }else{
        SendClientMessage(playerid, -1, "| AVISO | ID Invбlido use [400 a 611]");
        }

    }else{
    SendClientMessage(playerid, -1, "| AVISO | Vocк nгo tem Permissгo.");
    }
    return 1;
}
Reply


Messages In This Thread
Comando /cv - by paulotuto - 09.12.2014, 22:50
Re: COMANDO /CV - by Whoo - 09.12.2014, 22:52
Re: COMANDO /CV - by xJasonxX - 09.12.2014, 22:56
Re: COMANDO /CV - by FStralioti - 09.12.2014, 22:57
Re: COMANDO /CV - by [BOPE]Seu._.Madruga - 09.12.2014, 23:11
Re: COMANDO /CV - by paulotuto - 10.12.2014, 00:43
Re: COMANDO /CV - by paulotuto - 10.12.2014, 00:45
Re: COMANDO /CV - by Ts3 - 10.12.2014, 00:55
Re: Comando /cv - by paulotuto - 13.12.2014, 16:28
Respuesta: Comando /cv - by AndreLuiz - 13.12.2014, 18:22
Re: Comando /cv - by paulotuto - 13.12.2014, 18:45
Re: Comando /cv - by Whoo - 13.12.2014, 19:03

Forum Jump:


Users browsing this thread: 2 Guest(s)