Problem with /fcars command
#1

Hi i have made command to show all faction vehicles but when i add car to faction it sends Unknown command
whats the problem? I am using JustRP gamemode.
pawn Код:
COMMAND:fcars(playerid, params[]) {
    if(CharacterInfo[playerid][active_character[playerid]][cFaction] > 0) {
        new str[156];
        SendClientMessage(playerid, COLOR_GREEN, "---------------------FACTION CARS---------------------------");
        for(new i = 0; i < MAX_RP_VEHICLES; i++) {
            if(VehicleInfo[i][vFaction] == CharacterInfo[playerid][active_character[playerid]][cFaction])
                {
                format(str, sizeof(str), "* %d %s", VehicleInfo[i][vID], VehicleNames[GetVehicleModel(i) - 400]);
                }
            }
            SendClientMessage(playerid, COLOR_WHITE, str);
      SendClientMessage(playerid, COLOR_GREEN, "----------------------------------------------------------------");
    }
    return 1;
}
Reply
#2

BUMB please i need this.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)