else if(strcmp(x_vehicle, "mod", true) == 0) { new vehicleid = GetPlayerVehicleID(playerid); if(vehicleid <= IBPCARS) { return 1; } if(IsPlayerInRangeOfPoint(playerid, 20, 2531.6143, -1555.6794, 25.1923) || IsPlayerInRangeOfPoint(playerid, 20, 2530.6426, -1547.0442, 25.1923) || IsPlayerInRangeOfPoint(playerid, 20, 2530.3752, -1539.2592, 25.1923) || IsPlayerInRangeOfPoint(playerid, 20, 2530.1902, -1531.5018, 25.1923) || IsPlayerInRangeOfPoint(playerid, 20, 2530.0493, -1524.3677, 24.5870)) { new plname[MAX_PLAYER_NAME]; GetPlayerName(playerid, plname, sizeof(plname)); if(PlayerInfo[playerid][pFaction] == 7) { ShowPlayerDialog(playerid, Vmod, DIALOG_STYLE_LIST, "Modificarile Masinii", "Reparatie\nRoti\nPaintJob\nHydraulice\nTunning avansat\nSpoiler\nRemove tunning", "Select", "Cancel"); } else { SendClientMessage(playerid, COLOR_GRAD2, "Nu esti membru LSAS."); return 1; } } return 1; }
Are your players in the range of the points listed above when using the command?
|