[AJUDA] Comandos
#8

Quote:
Originally Posted by Willian_Luigi
Посмотреть сообщение
Acho que й isso nгo?
pawn Код:
#include <jcmd>
#include <sscanf>

newCmd:tuning(playerid, params[])
{
    new carroID, cor1, cor2;
    if(sscanf(params, "ddd", carroID, cor1, cor2))
        return 0;

    if(carroID < 400 || carroID > 611)
        return 0;

    if(cor1 < 0 || cor1 > 126)
        return 0;

    if(cor2 < 0 || cor2 > 126)
        return 0;

    new Float:x, Float:y, Float:z, Float:a;
    GetPlayerPos(playerid, x, y, z);
    GetPlayerFacingAngle(playerid, a);
    CreateVehicle(carroID, x, y, z, a, cor1, cor2, 999999);
    return 1;
}
Usamos sscanf para transformar os 'params' em espaзos ъteis...
Isso vai criar um veнculo, ele quer fazer alteraзхes em um veнculo

@Hellraiser
Leia ChangeVehicleColor e AddVehicleComponent
Reply


Messages In This Thread
[AJUDA] Comandos - by Hellraiser1593 - 21.04.2012, 23:45
Re: [AJUDA] Comandos - by Hellraiser1593 - 22.04.2012, 00:12
Re: [AJUDA] Comandos - by WLSF - 22.04.2012, 01:03
Re: [AJUDA] Comandos - by Hellraiser1593 - 22.04.2012, 14:32
Re: [AJUDA] Comandos - by WLSF - 22.04.2012, 14:36
Re: [AJUDA] Comandos - by Hellraiser1593 - 22.04.2012, 14:41
Re: [AJUDA] Comandos - by WLSF - 22.04.2012, 14:45
Re: [AJUDA] Comandos - by Jason` - 22.04.2012, 15:46
Re: [AJUDA] Comandos - by Hellraiser1593 - 22.04.2012, 17:32
Re: [AJUDA] Comandos - by WLSF - 22.04.2012, 22:25

Forum Jump:


Users browsing this thread: 1 Guest(s)