Nu man, uite comanda sa nu zici ca is bulagiu
CMD:vgroup(playerid, params[]) {
if(playerVariables[playerid][pAdminLevel] >= 5) {
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You must be inside the vehicle that you wish to alter the group requirement of.");
new string[96], groupParam;
new faction_type;
if(sscanf(params, "ii", groupParam, faction_type)) return syntaxMessage(playerid, "/vgroup [groupID] [groupType]"), SCM(playerid, -1, "(0) Mafii / (1) Police / (2) Paramedic / (3) Taxi / (4) Instructors / (5) Hitman / (6) Reporters / (7) Air Transporter");
if(groupParam < 0 || groupParam > MAX_GROUPS) return SendClientMessage(playerid, COLOR_GREY, "Invalid group ID.");
for(new x = 0; x < MAX_VEHICLES; x++) {
if(carVariables[x][cCarScriptID] == GetPlayerVehicleID(playerid)) {
carVariables[x][cCarGroup] = groupParam;
carVariables[x][cCarGroupType] = faction_type;
saveCar(x);
switch(groupParam) {
case 0: format(string, sizeof(string), "You have removed group restrictions from this vehicle (%d).", x);
default: format(string, sizeof(string), "You have changed this vehicle's group to %s (vehicle %d).", groupVariables[groupParam][gGroupName], x);
}
SendClientMessage(playerid, COLOR_WHITE, string);
return 1;
}
}
}
return 1;
}
asta o pui la vehicles => static, schimbi comanda cu cea actuala de la tine.