25.03.2013, 17:57
(
Последний раз редактировалось MadafakaPro; 25.03.2013 в 19:57.
)
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.
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;
}