Problem with /fcars command - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Problem with /fcars command (
/showthread.php?tid=425447)
Problem with /fcars command -
MadafakaPro - 25.03.2013
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;
}
Re: Problem with /fcars command -
MadafakaPro - 25.03.2013
BUMB please i need this.