[Ajuda] Comando Criar veiculo
#2

pawn Код:
COMMAND:veiculo(playerid, params[])
{
    new VehicleModel, vID, Msg[128], Float:Pos[3];
    SendAdminText(playerid, "/veiculo", params);
    if (APlayerData[playerid][LoggedIn] == true)
    {
        if (APlayerData[playerid][PlayerLevel] >= 5)
        {
            if (sscanf(params, "i", VehicleModel,)) reutnr SendClientMessage(playerid, 0xFF0000AA, "Usage: vehicle <VehicleModel> ");
           
            GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
            vID = Vehicle_Create(VehicleModel, Pos[0], Pos[1], Pos[2], 0, random(126), random(126), -1);
            format(Msg, 128, "Voce Criou o Veiculo %i (model-id = %i) at coords: ", vID, VehicleModel);
            SendClientMessage(playerid, 0x00FF00FF, Msg);
        }
    }
    return 1;
}
Reply


Messages In This Thread
Comando Criar veiculo - by Luucass - 17.12.2013, 23:22
Re: Comando Criar veiculo - by mau.tito - 17.12.2013, 23:27
Re: Comando Criar veiculo - by Gleisson_. - 17.12.2013, 23:28
Re: Comando Criar veiculo - by Luucass - 17.12.2013, 23:38

Forum Jump:


Users browsing this thread: 1 Guest(s)