CMD:creategvehicle(playerid, params[]) { new string[128], family, modelid, color1, color2; if(sscanf(params, "dddd", family, modelid, color1, color2)) return SendClientMessageEx(playerid, COLOR_WHITE, "USA: /creategvehicle [ID FAM] [Modelo] [color 1] [color 2]"); if (Info[playerid][pAdminRP] < 4 && Info[playerid][pGangModerator] != 1) { SendClientMessageEx(playerid, COLOR_GREY, " No puedes usar este comando"); return 1; } if(family < 1 || family > MAX_FAMILY) { SendClientMessageEx(playerid, COLOR_GREY, " Familias: 1 - 14!"); return 1; } family -= 1; if(fINFO[family][FamilyTaken] != 1) { SendClientMessageEx(playerid, COLOR_GREY, " Esa familia no estб ocupada!"); return 1; } if(color1 < 0 || color1 > 126) { SendClientMessageEx(playerid, COLOR_GREY, " COLOR: 0 a 126!"); return 1; } if(color2 < 0 || color2 > 126) { SendClientMessageEx(playerid, COLOR_GREY, " COLOR: 0 a 126!"); return 1; } if(modelid < 400 || modelid > 611) { SendClientMessageEx(playerid, COLOR_GREY, " Vehiculos: 400 al 611 !"); return 1; } new gangvehicleid = GetGangFreeVehicleId(family); if(gangvehicleid == -1) return SendClientMessageEx(playerid, COLOR_GREY, "ERROR: Esa familia no puede tener mбs coches."); new Float:X,Float:Y,Float:Z; GetPlayerPos(playerid,X,Y,Z); new Float:Angle; GetPlayerFacingAngle(playerid,Angle); new car = CreateGangVehicle(family, gangvehicleid, modelid, X, Y, Z, Angle, color1, color2, 0); if(car == INVALID_VEHICLE_ID) { SendClientMessageEx(playerid, COLOR_GREY, "ERROR: Algo saliу mal y el coche no se creу."); } else { format(string, sizeof(string), " Coche creado. ID: %d.", car); SendClientMessageEx(playerid, COLOR_GRAD1, string); saveFamiliesHQ(); } return 1; }
#define MAX_GANG_VEHICLES (8)
Busca йsta lнnea. Y cambia el "8" por el nъmero mбximo que quieras poner de vehнculos .
Код:
#define MAX_GANG_VEHICLES (8) |