[AJUDA]Comando
#3

seria isso?

pawn Код:
new bool:StolenCar[MAX_VEHICLES];

public OnPlayerCommandText(playerid,cmdtext[])
{
    if(strcmp("/carrosroubos", cmdtext, true) == 0)
    {
        for(new x = 0; x < MAX_VEHICLES; x++)
        {
            if(StolenCar[x] == true)
            {
                new Float:Float[3],Msg[90];
                GetVehiclePos(x,Float[0],Float[1],Float[2]);
                format(Msg,sizeof(Msg),"Veiculos Info: ID: %d, Modelo %d, Posiзхes: %f,%f,%f",x,GetVehicleModel(x),Float[0],Float[1],Float[2]);
                SendClientMessage(playerid,-1,Msg);
            }
        }
        return true;
    }
    else if(strcmp("/carrosuspeito", cmdtext, true) == 0)
    {
        new Daew,car;
        Daew = strtok(cmdtext,idx);
        car = strval(Daew);
        if(!strlen(Daew)) {
            return SendClientMessage(playerid,-1,"Error: Use /carrosuspeito <carid>");
        }
        else {
            StolenCar[car] = true;
            SendClientMessage(playerid,-1,"Pronto o carro jб estб em modo procurado.");
        }
        return true;
    }
    return false;
}
Reply


Messages In This Thread
[AJUDA]Comando - by willian Franco - 02.06.2011, 19:15
Re: [AJUDA]Comando - by TheGarfield - 02.06.2011, 20:15
Re: [AJUDA]Comando - by [S]trong - 02.06.2011, 20:44

Forum Jump:


Users browsing this thread: 1 Guest(s)