Jump to content

Gamemode LGM (inceput de la Lunoxx [cel de la 0])


alexC
 Share

Recommended Posts

  • Retired

Bun deci merg la baza de date si merg acolo la vehicles si caut vehicleGroupType si sterg tabelul , nu ? https://imgur.com/a/Brt6pwR

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.

Link to comment
Share on other sites

  • Retired

@@alexC nu este comanda /ad si /pay?

nu cred, daca nu este trebuie sa faci un system de /ad si comanda /pay care o poti gasi in alte gamemode-uri dar bineinteles ca trebuie sa o adaptezi la variabilele tale.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...